Skip to content

Commit 07d6662

Browse files
authored
Set explicit permissions on publish workflows (#83)
1 parent 746ddbe commit 07d6662

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
@@ -59,6 +59,9 @@ jobs:
5959
main:
6060
needs: set_env
6161
uses: solana-program/actions/.github/workflows/publish-js.yml@main
62+
permissions:
63+
contents: write
64+
id-token: write
6265
with:
6366
solana-cli-version: ${{ needs.set_env.outputs.SOLANA_CLI_VERSION }}
6467
target: ${{ needs.set_env.outputs.TARGET }}

.github/workflows/publish-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ jobs:
6666
main:
6767
needs: set_env
6868
uses: solana-program/actions/.github/workflows/publish-rust.yml@main
69+
permissions:
70+
contents: write
71+
id-token: write
6972
with:
7073
solana-cli-version: ${{ needs.set_env.outputs.SOLANA_CLI_VERSION }}
7174
clippy-toolchain: ${{ needs.set_env.outputs.RUST_TOOLCHAIN_NIGHTLY }}

0 commit comments

Comments
 (0)