Skip to content

Commit cd6a175

Browse files
authored
chore: fix action permissions (#1436)
1 parent 22b8c28 commit cd6a175

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
permissions:
20-
id-token: write # to enable use of OIDC (npm trusted publishing and provenance)
21-
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
22-
contents: read # to fetch code (actions/checkout)
23-
issues: write # to be able to comment on released issues
24-
pull-requests: write # to be able to comment on released pull requests
19+
permissions: {}
2520

2621
jobs:
2722
validate:
23+
permissions:
24+
contents: read # to fetch code (actions/checkout)
2825
continue-on-error: ${{ matrix.react != 'latest' }}
2926
# ignore all-contributors PRs
3027
if: ${{ !contains(github.head_ref, 'all-contributors') }}
@@ -75,9 +72,11 @@ jobs:
7572

7673
release:
7774
permissions:
75+
id-token: write # to enable use of OIDC (npm trusted publishing and provenance)
7876
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
7977
contents: write # to create release tags (cycjimmy/semantic-release-action)
8078
issues: write # to post release that resolves an issue (cycjimmy/semantic-release-action)
79+
pull-requests: write # to be able to comment on released pull requests
8180

8281
needs: validate
8382
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)