Skip to content

Commit 1e8a86c

Browse files
authored
fix: release workflow also needs pull-requests: write permissions (#10816)
1 parent f45cde6 commit 1e8a86c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ jobs:
1313
# Prevents action from creating a PR on forks
1414
if: github.repository == 'apollographql/apollo-client'
1515
runs-on: ubuntu-latest
16+
# Permissions necessary for Changesets to push a new branch and open PRs
17+
# (for automated Version Packages PRs), and request the JWT for provenance.
18+
# More info: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
1619
permissions:
17-
contents: read
20+
contents: write
21+
pull-requests: write
1822
id-token: write
1923
steps:
2024
- name: Checkout repo
@@ -33,6 +37,7 @@ jobs:
3337
- name: Append NPM token to .npmrc
3438
run: |
3539
cat << EOF > "$HOME/.npmrc"
40+
provenance=true
3641
//registry.npmjs.org/:_authToken=$NPM_TOKEN
3742
EOF
3843
env:

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
legacy-peer-deps=true
2-
provenance=true

0 commit comments

Comments
 (0)