Skip to content

Commit

Permalink
github-action: add attestations scope (#2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Apr 26, 2024
1 parent ffc0861 commit 52e9c1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/actions/packages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ runs:
path: |
dist/*.whl
dist/*tar.gz
- name: generate build provenance
uses: github-early-access/generate-build-provenance@main
with:
subject-path: "${{ github.workspace }}/dist/*"
3 changes: 0 additions & 3 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ permissions:

jobs:
build:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ jobs:

packages:
permissions:
attestations: write
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/packages
- name: generate build provenance
uses: github-early-access/generate-build-provenance@main
with:
subject-path: "${{ github.workspace }}/dist/*"

publish-pypi:
needs:
Expand Down Expand Up @@ -53,6 +58,7 @@ jobs:

build-distribution:
permissions:
attestations: write
id-token: write
contents: write
runs-on: ubuntu-latest
Expand Down Expand Up @@ -103,6 +109,7 @@ jobs:
- build-distribution
runs-on: ubuntu-latest
permissions:
attestations: write
id-token: write
contents: write
env:
Expand Down

0 comments on commit 52e9c1b

Please sign in to comment.