Skip to content

Commit 5533bcd

Browse files
chore(workflows): update actions to latest and setup OIDC perms (#1330)
* chore(workflows): update actions to latest and setup OIDC perms * ci: remove unneeded secret since we are going with trusted publishing * ci: modify contents perm to write to allow pushing up of tags
1 parent a717f1c commit 5533bcd

4 files changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/cicd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
concurrency: ${{ github.workflow }}-${{ github.ref }}
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@v6 # v6.0.2
1717

1818
- name: Setup pnpm
19-
uses: pnpm/action-setup@v5
19+
uses: pnpm/action-setup@v5 # v5.0.0
2020
- name: Setup Node.js
21-
uses: actions/setup-node@v5
21+
uses: actions/setup-node@v6 # v6.3.0
2222
with:
2323
node-version-file: '.nvmrc'
2424
cache: 'pnpm'

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6 # v6.0.2
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v4
42+
uses: github/codeql-action/init@v4 # v4.34.1
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v4
53+
uses: github/codeql-action/autobuild@v4 # v4.34.1
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v4
67+
uses: github/codeql-action/analyze@v4 # v4.34.1

.github/workflows/release.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ on:
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write # Required to push tags and releases
13+
1014
jobs:
1115
release:
1216
name: Release
1317
runs-on: ubuntu-latest
1418
steps:
1519
- name: Checkout Repo
16-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6 # v6.0.2
1721

1822
- name: Setup pnpm
19-
uses: pnpm/action-setup@v5
23+
uses: pnpm/action-setup@v5 # v5.0.0
2024

2125
- name: Setup Node
22-
uses: actions/setup-node@v5
26+
uses: actions/setup-node@v6 # v6.3.0
2327
with:
2428
node-version-file: ".nvmrc"
2529
cache: "pnpm"
@@ -29,10 +33,9 @@ jobs:
2933

3034
- name: Create Release Pull Request or Publish to npm
3135
id: changesets
32-
uses: changesets/action@v1
36+
uses: changesets/action@v1 # v1.7.0
3337
with:
3438
version: pnpm run version
3539
publish: pnpm publish -r
3640
env:
3741
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_SECRET }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Close Stale Issues
12-
uses: actions/stale@v10
12+
uses: actions/stale@v10 # v10.2.0
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
stale-pr-message: |

0 commit comments

Comments
 (0)