Skip to content

Commit 21a6c9e

Browse files
authored
ci: properly mint a provenance token in release workflows (#6754)
## What's the problem this PR addresses? Follow-up #6750: enable provenance statements for Yarn ## How did you fix it? <!-- A detailed description of your implementation. --> Added `permissions: id-token: write` to publication workflows ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed.
1 parent 09ce636 commit 21a6c9e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release-branch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
env:
1919
NODE_OPTIONS: --max_old_space_size=8192
2020

21+
# Mint a token to produce the provenance statement
22+
permissions:
23+
id-token: write
24+
2125
steps:
2226
- uses: actions/checkout@v4
2327
with:

.github/workflows/release-candidate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
env:
1919
NODE_OPTIONS: --max_old_space_size=8192
2020

21+
# Mint a token to produce the provenance statement
22+
permissions:
23+
id-token: write
24+
2125
steps:
2226
- uses: actions/checkout@v4
2327
with:

0 commit comments

Comments
 (0)