Skip to content

Commit 8b3afee

Browse files
authored
Set explicit permissions on publish workflows (#391)
1 parent 43d5e24 commit 8b3afee

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/publish-js.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
main:
6464
needs: set_env
6565
uses: solana-program/actions/.github/workflows/publish-js.yml@main
66+
permissions:
67+
contents: write
68+
id-token: write
6669
with:
6770
sbpf-program-packages: "program"
6871
solana-cli-version: ${{ needs.set_env.outputs.SOLANA_CLI_VERSION }}

.github/workflows/publish-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
main:
7272
needs: set_env
7373
uses: solana-program/actions/.github/workflows/publish-rust.yml@main
74+
permissions:
75+
contents: write
76+
id-token: write
7477
with:
7578
sbpf-program-packages: "program"
7679
solana-cli-version: ${{ needs.set_env.outputs.SOLANA_CLI_VERSION }}

0 commit comments

Comments
 (0)