File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 - name : Checkout repo
1818 uses : actions/checkout@v4
1919 with :
20- ref : main
20+ ref : ${{ github.ref_name }}
2121
2222 - name : Set up Node.js
2323 uses : actions/setup-node@v4
Original file line number Diff line number Diff line change 1313
1414jobs :
1515 generate-sbom :
16- name : Generate SBOM
16+ name : Generate SBOM From Docker Image
1717 environment : demo
1818 runs-on : ubuntu-latest
1919 steps :
3838 path : sbom.json
3939
4040 scan-sbom :
41- name : Run HD Scan
41+ name : Run HeroDevs EOL Scan
4242 runs-on : ubuntu-latest
4343 needs : generate-sbom
4444 steps :
5454 path : .
5555
5656 - name : Run EOL scan
57- run : npx @herodevs/cli@beta scan eol --file=sbom.json
57+ run : npx @herodevs/cli@beta scan eol --file=sbom.json --save
5858
5959 - name : Upload HD report
6060 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -14,11 +14,14 @@ jobs:
1414 steps :
1515 - name : Checkout repository
1616 uses : actions/checkout@v4
17- with :
18- ref : main
1917
2018 - name : Run EOL Scan with Docker
21- run : docker run --rm -v $GITHUB_WORKSPACE:/app -w /app ghcr.io/herodevs/eol-scan --save
19+ run : |
20+ docker run --rm \
21+ -v $GITHUB_WORKSPACE:/app \
22+ -w /app \
23+ --user $(id -u):$(id -g) \
24+ ghcr.io/herodevs/eol-scan --save
2225
2326 - name : Upload artifact
2427 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments