Skip to content

Commit

Permalink
Add attest-build-provenance action (#725)
Browse files Browse the repository at this point in the history
* Add attest-build-provenance action

* Add permissions

* Update .github/workflows/ReleaseActions.yml
  • Loading branch information
ludeeus authored May 22, 2024
1 parent 26db809 commit 06bf2ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ReleaseActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ env:
NODE_VERSION: 18
PYTHON_VERSION: "3.x"

permissions: {}

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to PyPi
permissions:
id-token: write
contents: read
attestations: write
steps:
- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -78,6 +84,11 @@ jobs:
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Attest
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d #v1.1.2
with:
subject-path: dist/*

- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
Expand Down

0 comments on commit 06bf2ed

Please sign in to comment.