Skip to content

Commit

Permalink
ci: attestation of build provenance
Browse files Browse the repository at this point in the history
Signed-off-by: Bryant Finney <[email protected]>
  • Loading branch information
bryant-finney committed Oct 25, 2024
1 parent 34ab876 commit fbc65f6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/push-poetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,13 @@ jobs:
upload-assets:
if: github.ref_type == 'tag'
needs: [build, docs, sdist]

permissions:
attestations: write
contents: write
id-token: write
packages: read

runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
Expand All @@ -262,7 +267,14 @@ jobs:
pattern: build-*
merge-multiple: true

- run: gh release upload ${{ github.ref_name }} dist/*
- id: attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: dist/*

- env:
GH_TOKEN: ${{ github.token }}
run: gh release upload ${{ github.ref_name }} dist/* ${{ steps.attestation.outputs.bundle-path }}

test-pypi:
environment:
Expand Down

0 comments on commit fbc65f6

Please sign in to comment.