Created
May 16, 2024 18:46
-
-
Save silver-surfer94/5ff688e663ee37b74502608a0d7a72d3 to your computer and use it in GitHub Desktop.
gh-provenance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provenance: | |
| permissions: | |
| actions: read | |
| id-token: write | |
| packages: write | |
| attestations: write | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./app | |
| steps: | |
| - name: Checkout App Repo | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
| with: | |
| path: app | |
| - name: Checkout Workflows Repo | |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
| with: | |
| repository: ${{ needs.detect-workflow.outputs.repository }} | |
| ref: ${{ needs.detect-workflow.outputs.ref }} | |
| path: gh-trusted-builds-workflows | |
| persist-credentials: false | |
| - name: Configuration | |
| id: config | |
| uses: ./gh-trusted-builds-workflows/.github/actions/config | |
| with: | |
| environment: ${{ inputs.environment }} | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Attest | |
| uses: actions/attest-build-provenance@v1 | |
| id: attest | |
| with: | |
| subject-name: ghcr.io/${{ github.repository }} | |
| subject-digest: ${{ needs.sign.outputs.digest }} | |
| push-to-registry: true | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment