Skip to content

Commit 2591a93

Browse files
authored
Merge pull request #524 from ARGOeu/trivy@master
Create trivy-master.yml
2 parents 83be9bb + 7a3265f commit 2591a93

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/trivy-master.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)