Skip to content

Commit 7fb2fb0

Browse files
committed
chore(actions): set sbom-action to 0.17.0 and add permission
1 parent 2eb7ff6 commit 7fb2fb0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/prereleased.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525

2626

2727
permissions:
28+
actions: read
2829
id-token: write
2930
contents: write
3031
packages: read
@@ -180,7 +181,7 @@ jobs:
180181
- uses: actions/checkout@v4
181182

182183
- name: Create SBOM
183-
uses: anchore/sbom-action@v0
184+
uses: anchore/sbom-action@v0.17.0
184185
with:
185186
upload-artifact-retention: 1
186187
format: cyclonedx-json

.github/workflows/pull-request.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818

1919

2020
permissions:
21+
actions: read
2122
id-token: write
2223
contents: read
2324
packages: read
@@ -65,7 +66,7 @@ jobs:
6566
- uses: actions/checkout@v4
6667

6768
- name: Create SBOM
68-
uses: anchore/sbom-action@v0
69+
uses: anchore/sbom-action@v0.17.0
6970
with:
7071
upload-artifact-retention: 1
7172
format: cyclonedx-json

0 commit comments

Comments
 (0)