Skip to content

Commit 467fb6d

Browse files
sserrataclaude
andcommitted
fix(ci): restore id-token permission and git credentials for release workflow
The CI hardening PRs (#1403, #1412) moved permissions from top-level to job-level but dropped id-token:write, breaking npm OIDC trusted publishing. Also restores persist-credentials for git tag push operations. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent e63ca9f commit 467fb6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
if: ${{ github.repository == 'PaloAltoNetworks/docusaurus-openapi-docs' }}
2424
permissions:
2525
contents: write
26+
id-token: write
2627
steps:
2728
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2829
with:
2930
fetch-depth: 0
30-
persist-credentials: false
3131
- run: |
3232
git config user.name "github-actions[bot]"
3333
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -46,12 +46,12 @@ jobs:
4646
if: ${{ github.repository == 'PaloAltoNetworks/docusaurus-openapi-docs' && github.ref == 'refs/heads/main' }}
4747
permissions:
4848
contents: read
49+
id-token: write
4950
steps:
5051
- name: Checkout
5152
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5253
with:
5354
fetch-depth: 0
54-
persist-credentials: false
5555
- name: Check if packages changed
5656
id: packages_changed
5757
run: |

0 commit comments

Comments
 (0)