Skip to content

Commit ec74eaa

Browse files
committed
Switch to CLI-based Sysdig scan using curl
1 parent 43c36ca commit ec74eaa

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/sysdig-scan.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
jobs:
1414
scan:
15-
name: Sysdig Scan Docker + IaC (loaded image method)
15+
name: Sysdig Scan Docker + IaC (with docker.sock)
1616
runs-on: ubuntu-latest
1717

1818
steps:
@@ -25,16 +25,11 @@ jobs:
2525
- name: Build vote image
2626
run: |
2727
docker build -t vote-image ./vote
28-
docker save vote-image -o vote-image.tar
28+
docker tag vote-image vote-image:ci
2929
30-
- name: Load and tag image
30+
- name: Scan Docker image using docker.sock
3131
run: |
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
32+
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }} quay.io/sysdig/sysdig-cli-scanner:latest --apiurl ${{ secrets.SYSDIG_API_URL }} vote-image:ci
3833
3934
- name: Scan IaC (k8s-specifications)
4035
run: |

0 commit comments

Comments
 (0)