Skip to content

Commit 7faa73d

Browse files
authored
chore: add workflow permissions (#1392)
Signed-off-by: Jan Kowalleck <[email protected]> Signed-off-by: jkowalleck <[email protected]> Co-authored-by: jkowalleck <[email protected]>
1 parent 670da22 commit 7faa73d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/nodejs.yml

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

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

.github/workflows/release.yml

Lines changed: 7 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
@@ -45,6 +45,8 @@ jobs:
4545
version_plain: ${{ steps.bump.outputs.version_plain }}
4646
runs-on: ubuntu-latest
4747
timeout-minutes: 30
48+
permissions:
49+
contents: write # needed for git push
4850
steps:
4951
- name: Setup Node.js ${{ env.NODE_ACTIVE_LTS }}
5052
# see https://github.com/actions/setup-node
@@ -90,6 +92,8 @@ jobs:
9092
name: publish package
9193
runs-on: ubuntu-latest
9294
timeout-minutes: 30
95+
permissions:
96+
id-token: write # Enables provenance signing via OIDC
9397
env:
9498
PACKAGE_RELEASE_TAG: ${{ github.event.inputs.prerelease == 'true' && 'unstable-prerelease' || 'latest' }}
9599
steps:
@@ -150,6 +154,8 @@ jobs:
150154
name: publish GitHub
151155
runs-on: ubuntu-latest
152156
timeout-minutes: 30
157+
permissions:
158+
contents: write # create a release
153159
env:
154160
ASSETS_DIR: release_assets
155161
steps:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cyclonedx/webpack-plugin",
3-
"version": "5.0.1",
3+
"version": "5.0.2-alpha.0",
44
"description": "Creates CycloneDX Software Bill of Materials (SBoM) from webpack projects",
55
"license": "Apache-2.0",
66
"copyright": "Copyright OWASP Foundation",

0 commit comments

Comments
 (0)