Skip to content

Commit 2c0c2ec

Browse files
committed
Add required permissions to release and snapshot workflows
1 parent 1039888 commit 2c0c2ec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
build-and-test:
2828
uses: ./.github/workflows/build-and-test.yml
2929
publish_artifacts:
30+
# permissions required for sigstore signature
31+
permissions:
32+
id-token: write
33+
contents: read
3034
needs:
3135
- version
3236
- build-and-test

.github/workflows/snapshot_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
secrets:
2222
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2323
publish:
24+
# permissions required for sigstore signature
25+
permissions:
26+
id-token: write
27+
contents: read
2428
needs:
2529
- build-and-test
2630
runs-on: macos-latest

0 commit comments

Comments
 (0)