File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments