From f7adb1037738733addb7ec4b2e455bf64a88b548 Mon Sep 17 00:00:00 2001 From: Rick Markins Date: Wed, 25 Mar 2026 16:14:43 -0700 Subject: [PATCH 1/3] chore(workflows): update actions to latest and setup OIDC perms --- .github/workflows/cicd.yml | 6 +++--- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/release.yaml | 12 ++++++++---- .github/workflows/stale.yml | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index b8b39e60..e51296e2 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -13,12 +13,12 @@ jobs: concurrency: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@v6 # v6.0.2 - name: Setup pnpm - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v5 # v5.0.0 - name: Setup Node.js - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 # v6.3.0 with: node-version-file: '.nvmrc' cache: 'pnpm' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 172cac9d..281681e7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,11 +35,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 # v6.0.2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v4 + uses: github/codeql-action/init@v4 # v4.34.1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,7 +50,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v4 + uses: github/codeql-action/autobuild@v4 # v4.34.1 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -64,4 +64,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v4 + uses: github/codeql-action/analyze@v4 # v4.34.1 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ac06fe8e..8a8b2379 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,19 +7,23 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: + id-token: write # Required for OIDC + contents: read + jobs: release: name: Release runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v5 + uses: actions/checkout@v6 # v6.0.2 - name: Setup pnpm - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v5 # v5.0.0 - name: Setup Node - uses: actions/setup-node@v5 + uses: actions/setup-node@v6 # v6.3.0 with: node-version-file: ".nvmrc" cache: "pnpm" @@ -29,7 +33,7 @@ jobs: - name: Create Release Pull Request or Publish to npm id: changesets - uses: changesets/action@v1 + uses: changesets/action@v1 # v1.7.0 with: version: pnpm run version publish: pnpm publish -r diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 82bcca65..8a92d62c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Close Stale Issues - uses: actions/stale@v10 + uses: actions/stale@v10 # v10.2.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-pr-message: | From d77176f6e5cf5aef565336ee3bdcd6cc80252189 Mon Sep 17 00:00:00 2001 From: Rick Markins Date: Wed, 25 Mar 2026 16:21:41 -0700 Subject: [PATCH 2/3] ci: remove unneeded secret since we are going with trusted publishing --- .github/workflows/release.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8a8b2379..297debe4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -39,4 +39,3 @@ jobs: publish: pnpm publish -r env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_SECRET }} From 531355d97b5531fe885df401ed0e6b5684eca1db Mon Sep 17 00:00:00 2001 From: Rick Markins Date: Wed, 25 Mar 2026 16:25:09 -0700 Subject: [PATCH 3/3] ci: modify contents perm to write to allow pushing up of tags --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 297debe4..9ac85d02 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} permissions: id-token: write # Required for OIDC - contents: read + contents: write # Required to push tags and releases jobs: release: