Skip to content

Commit d841af3

Browse files
committed
chore: fix more issues
1 parent 2042d9e commit d841af3

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/demo-build-and-scan-docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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

.github/workflows/demo-scan-docker-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313

1414
jobs:
1515
generate-sbom:
16-
name: Generate SBOM
16+
name: Generate SBOM From Docker Image
1717
environment: demo
1818
runs-on: ubuntu-latest
1919
steps:
@@ -38,7 +38,7 @@ jobs:
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:
@@ -54,7 +54,7 @@ jobs:
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

.github/workflows/demo-scan-with-image.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)