File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - master
5+ jobs :
6+ supply-chain :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : checkout code
10+ uses : actions/checkout@v4
11+ - name : Scan and Generate SBOM
12+ uses : aquasecurity/trivy-action@0.32.0
13+ with :
14+ format : " cyclonedx"
15+ exit-code : " 1"
16+ hide-progress : true
17+ output : " dependencies.cdx.json"
18+ ignore-unfixed : true
19+ scan-type : " fs"
20+ scan-ref : " ."
21+ github-pat : ${{ secrets.GITHUB_TOKEN }}
22+ severity : " CRITICAL,HIGH"
23+ skip-dirs : website
24+ env :
25+ TRIVY_DB_REPOSITORY : public.ecr.aws/aquasecurity/trivy-db:2
26+ - name : Deliver BOM to Dependency Tracker
27+ run : |
28+ curl -v -X POST \
29+ -H "X-Api-Key: ${{ secrets.DEPTRACK_API_KEY }}" \
30+ -H 'Accept: application/json' \
31+ -H 'Content-Type: multipart/form-data' \
32+ -F "project=${{ secrets.DEPTRACK_PROJECT_ID }}" \
33+ -F "bom=@dependencies.cdx.json" \
34+ -F "isLatest=true" \
35+ https://sms.eoscnode.org/api/v1/bom
You can’t perform that action at this time.
0 commit comments