1+ name : Augment SBOM
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ release_version :
7+ description : " Release version (e.g. 1.35.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+
16+ permissions :
17+ id-token : write
18+ contents : read
19+
20+ jobs :
21+ augment-sbom :
22+ runs-on : ubuntu-latest
23+
24+ env :
25+ KONDUKTO_TOKEN : ${{ secrets.KONDUKTO_TOKEN }}
26+ KONDUKTO_REPO : ${{ vars.KONDUKTO_REPO }}
27+ KONDUKTO_BRANCH_PREFIX : ${{ vars.KONDUKTO_BRANCH_PREFIX }}
28+ SILKBOMB_IMG : ${{ vars.SILKBOMB_IMG }}
29+
30+ steps :
31+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
32+
33+ - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
34+ with :
35+ go-version-file : ' go.mod'
36+
37+ - name : Get current date
38+ id : date
39+ run : |
40+ echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
41+
42+ - name : Augment SBOM with Kondukto
43+ env :
44+ RELEASE_VERSION : ${{ inputs.release_version }}
45+ RESOURCE : ${{ inputs.resource }}
46+ run : |
47+ make augment-sbom
48+
49+ - name : Generate SSDLC report
50+ env :
51+ AUTHOR : ${{ github.actor }}
52+ VERSION : ${{ inputs.release_version }}
53+ AUGMENTED_REPORT : " true"
54+ run : ./scripts/gen-ssdlc-report.sh
55+
56+ - name : Upload augmented SBOM as artifact
57+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
58+ with :
59+ name : augmented_sbom_and_ssdlc_report
60+ path : |
61+ cfn-resources/${{ inputs.resource }}/compliance/augmented-sbom-v${{ inputs.release_version }}-${{ steps.date.outputs.date }}.json
62+ cfn-resources/${{ inputs.resource }}/compliance/ssdlc-compliance-${{ inputs.release_version }}-${{ steps.date.outputs.date }}.md
63+ if-no-files-found : error
0 commit comments