Skip to content

Commit 50f54ed

Browse files
committed
augment sbom action
1 parent 88d111b commit 50f54ed

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Augment SBOM
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_version:
7+
description: "Release version (e.g. 3.12.1)"
8+
required: true
9+
type: string
10+
resource:
11+
description: "Resource name (e.g. organization, project, etc.)"
12+
required: true
13+
type: string
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
19+
jobs:
20+
augment-sbom:
21+
runs-on: ubuntu-latest
22+
env:
23+
KONDUKTO_TOKEN: ${{ secrets.KONDUKTO_TOKEN }}
24+
KONDUKTO_REPO: ${{ vars.KONDUKTO_REPO }}
25+
KONDUKTO_BRANCH_PREFIX: ${{ vars.KONDUKTO_BRANCH_PREFIX }}
26+
SILKBOMB_IMG: ${{ vars.SILKBOMB_IMG }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Get current date
31+
id: date
32+
run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
33+
34+
- name: Augment SBOM with Kondukto
35+
env:
36+
RELEASE_VERSION: ${{ inputs.release_version }}
37+
run: ./scripts/compliance/augment-sbom.sh
38+
39+
- name: Generate SSDLC report
40+
env:
41+
AUTHOR: ${{ github.actor }}
42+
VERSION: ${{ inputs.release_version }}
43+
AUGMENTED_REPORT: "true"
44+
run: ./scripts/compliance/gen-ssdlc-report.sh
45+
46+
- name: Upload augmented SBOM as artifact
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: augmented_sbom_and_ssdlc_report
50+
path: |
51+
cfn-resources/${{ inputs.resource }}/compliance/augmented-sbom-v${{ inputs.release_version }}-${{ steps.date.outputs.date }}.json
52+
cfn-resources/${{ inputs.resource }}/compliance/ssdlc-compliance-${{ inputs.release_version }}-${{ steps.date.outputs.date }}.md
53+
if-no-files-found: error

0 commit comments

Comments
 (0)