Skip to content

Commit ff217cb

Browse files
committed
chore: add workflow permissions
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent a441896 commit ff217cb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: true
1919

20+
permissions: {}
21+
2022
env:
2123
NODE_ACTIVE_LTS: "22" # see https://nodejs.org/en/about/releases/
2224
REPORTS_DIR: "CI_reports"

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828
default: false
2929
required: false
3030

31-
permissions: write-all
31+
permissions: {}
3232

3333
env:
3434
REPORTS_DIR: CI_reports
@@ -85,6 +85,8 @@ jobs:
8585
name: publish package
8686
runs-on: ubuntu-latest
8787
timeout-minutes: 30
88+
permissions:
89+
id-token: write # Enables provenance signing via OIDC
8890
env:
8991
PACKAGE_RELEASE_TAG: ${{ github.event.inputs.prerelease == 'true' && 'unstable-prerelease' || 'latest' }}
9092
steps:
@@ -161,6 +163,8 @@ jobs:
161163
name: publish GitHub
162164
runs-on: ubuntu-latest
163165
timeout-minutes: 30
166+
permissions:
167+
contents: write # create a release
164168
env:
165169
ASSETS_DIR: release_assets
166170
steps:

0 commit comments

Comments
 (0)