File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
scan :
15
- name : Sysdig Scan Docker + IaC (Docker version )
15
+ name : Sysdig Scan Docker + IaC (loaded image method )
16
16
runs-on : ubuntu-latest
17
17
18
18
steps :
@@ -27,10 +27,15 @@ jobs:
27
27
docker build -t vote-image ./vote
28
28
docker save vote-image -o vote-image.tar
29
29
30
- - name : Scan Docker image from archive with Sysdig
30
+ - name : Load and tag image
31
31
run : |
32
- docker run --rm --platform linux/amd64 -e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }} -v ${{ github.workspace }}/vote-image.tar:/tmp/vote-image.tar quay.io/sysdig/sysdig-cli-scanner:latest --standalone --input-file /tmp/vote-image.tar vote-image:ci
32
+ docker load -i vote-image.tar
33
+ docker tag vote-image:latest vote-image:ci
34
+
35
+ - name : Scan Docker image using tag
36
+ run : |
37
+ docker run --rm -e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }} quay.io/sysdig/sysdig-cli-scanner:latest --apiurl ${{ secrets.SYSDIG_API_URL }} vote-image:ci
33
38
34
39
- name : Scan IaC (k8s-specifications)
35
40
run : |
36
- docker run --rm --platform linux/amd64 - e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }} -v ${{ github.workspace }}:/iac quay.io/sysdig/sysdig-cli-scanner:latest --apiurl ${{ secrets.SYSDIG_API_URL }} --iac scan /iac/k8s-specifications
41
+ docker run --rm -e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }} -v ${{ github.workspace }}:/iac quay.io/sysdig/sysdig-cli-scanner:latest --apiurl ${{ secrets.SYSDIG_API_URL }} --iac scan /iac/k8s-specifications
You can’t perform that action at this time.
0 commit comments