Skip to content

Commit 25249a3

Browse files
committed
Simplify workflow before adding sign step
1 parent 38c47ae commit 25249a3

1 file changed

Lines changed: 4 additions & 23 deletions

File tree

.github/workflows/sbom.yaml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,14 @@ jobs:
1313
sbom:
1414
runs-on: ubuntu-latest
1515
permissions:
16-
contents: read
16+
actions: read
17+
contents: write
1718

1819
steps:
1920
- name: Checkout repository
2021
uses: actions/checkout@v4
2122

22-
- name: Set up Syft
23-
uses: anchore/sbom-action@v0.20.6
24-
2523
- name: Generate SBOM with Syft
26-
run: syft . -o cyclonedx-json=sbom.${{ env.COMPONENT_VERSION }}.cdx.json
27-
28-
29-
- name: Sign SBOM
30-
uses: shiftleftcyber/secure-sbom-action@v1.2.0
31-
with:
32-
sbom_file: sbom.${{ env.COMPONENT_VERSION }}.cdx.json
33-
secure_sbom_action: sign
34-
api_key: ${{ secrets.SECURE_SBOM_API_KEY }}
35-
key_id: ${{ secrets.SECURE_SBOM_KEY_ID }}
36-
37-
- name: Archive Signed SBOM
38-
uses: actions/upload-artifact@v4
24+
uses: anchore/sbom-action@v0.20.6
3925
with:
40-
name: secure-sbom-api-signed-sbom
41-
path: sbom.${{ env.COMPONENT_VERSION }}.cdx.signed.json
42-
retention-days: 30
43-
44-
- name: Clean up
45-
run: rm -f sbom.${{ env.COMPONENT_VERSION }}.cdx.json sbom.${{ env.COMPONENT_VERSION }}.cdx.signed.json
26+
path: ./marketing/

0 commit comments

Comments
 (0)