Skip to content

Commit 69b3ccc

Browse files
committed
build: update release action to use oidc
1 parent 8ba3d8c commit 69b3ccc

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: 'CodeQL'
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
37
on:
4-
push:
5-
branches: ['main']
68
pull_request:
79
branches: ['main']
810
schedule:

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ jobs:
1212
contents: write
1313
issues: write
1414
pull-requests: write
15+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
1516
steps:
1617
- name: Checkout
17-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1819
with:
1920
fetch-depth: 0
20-
token: ${{ secrets.GH_WEB_SHIM_PUSH_TOKEN }}
21+
2122
- name: Setup Node.js
22-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v6
2324
with:
2425
node-version: 'lts/*'
25-
registry-url: 'https://registry.npmjs.org'
26+
2627
- name: Install dependencies
2728
run: npm ci
29+
2830
- name: Release
2931
env:
30-
GITHUB_TOKEN: ${{ secrets.GH_WEB_SHIM_PUSH_TOKEN }}
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_WEB_SHIM_PUSH_TOKEN }}
32-
NPM_TOKEN: ${{ secrets.NPM_WEB_SHIM_PUSH_TOKEN }}
32+
GITHUB_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
3333
run: |
3434
npx -p semantic-release \
3535
-p @semantic-release/changelog \

0 commit comments

Comments
 (0)