Skip to content

Commit 4367a0b

Browse files
committed
Fix: pass vote image to scanner via tar file
1 parent 0f825f3 commit 4367a0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/sysdig-scan.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ jobs:
2525
- name: Build vote image
2626
run: |
2727
docker build -t vote-image ./vote
28+
docker save vote-image -o vote-image.tar
2829
2930
- name: Scan Docker image with Sysdig
3031
run: |
3132
docker run --rm \
3233
-e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }} \
34+
-v ${{ github.workspace }}/vote-image.tar:/tmp/vote-image.tar \
3335
quay.io/sysdig/sysdig-cli-scanner:latest \
3436
--apiurl ${{ secrets.SYSDIG_API_URL }} \
35-
vote-image
37+
--input /tmp/vote-image.tar
3638
3739
- name: Scan IaC (k8s-specifications)
3840
run: |

0 commit comments

Comments
 (0)