Skip to content

Commit 089d0ec

Browse files
authored
chore: add workflow permissions (#1241)
Signed-off-by: Jan Kowalleck <[email protected]> Signed-off-by: jkowalleck <[email protected]> Co-authored-by: jkowalleck <[email protected]>
1 parent 42ffed1 commit 089d0ec

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
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: 8 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: Checkout code
5052
# see https://github.com/actions/checkout
@@ -85,6 +87,9 @@ jobs:
8587
name: publish package
8688
runs-on: ubuntu-latest
8789
timeout-minutes: 30
90+
permissions:
91+
id-token: write # Enables provenance signing via OIDC
92+
packages: write # Allows writing to organization packages
8893
env:
8994
PACKAGE_RELEASE_TAG: ${{ github.event.inputs.prerelease == 'true' && 'unstable-prerelease' || 'latest' }}
9095
steps:
@@ -161,6 +166,8 @@ jobs:
161166
name: publish GitHub
162167
runs-on: ubuntu-latest
163168
timeout-minutes: 30
169+
permissions:
170+
contents: write # create a release
164171
env:
165172
ASSETS_DIR: release_assets
166173
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/cyclonedx-library",
3-
"version": "8.0.1-alpha.0",
3+
"version": "8.0.1-alpha.1",
44
"description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
55
"license": "Apache-2.0",
66
"keywords": [

0 commit comments

Comments
 (0)