Skip to content

Commit bde1c5b

Browse files
chore(ci): update semantic release workflow to use OIDC (#4052)
1 parent 9d7ceef commit bde1c5b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ on:
55
branches:
66
- next
77
- release-*
8+
9+
permissions:
10+
contents: read # for checkout
11+
812
jobs:
913
release:
1014
name: Release
1115
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write # to be able to publish a GitHub release
18+
issues: write # to be able to comment on released issues
19+
pull-requests: write # to be able to comment on released pull requests
20+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
1221
steps:
1322
- name: Checkout
1423
uses: actions/checkout@v5
@@ -35,5 +44,4 @@ jobs:
3544
- name: Release
3645
env:
3746
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_NPM_TOKEN }}
39-
run: npx semantic-release@22
47+
run: npx semantic-release@25

0 commit comments

Comments
 (0)