Skip to content

Commit

Permalink
Attest build provenance (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus authored May 16, 2024
1 parent 2211dda commit bbeeb6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:

package:
runs-on: ubuntu-latest
# Required by attest-build-provenance-github.
permissions:
id-token: write
attestations: write
env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}

Expand All @@ -20,6 +24,9 @@ jobs:

- name: Build and Check Package
uses: hynek/[email protected]
with:
attest-build-provenance-github: 'true'


deploy:
needs: package
Expand All @@ -33,7 +40,7 @@ jobs:
- uses: actions/checkout@v3

- name: Download Package
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ jobs:

package:
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@v3
- name: Build and Check Package
uses: hynek/[email protected]
uses: hynek/[email protected]
with:
attest-build-provenance-github: 'true'

test:

Expand Down Expand Up @@ -49,7 +54,7 @@ jobs:
- uses: actions/checkout@v3

- name: Download Package
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
Expand Down

0 comments on commit bbeeb6d

Please sign in to comment.