File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
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
15
+ name : Sysdig Scan Docker + IaC (Docker version)
16
16
runs-on : ubuntu-latest
17
17
18
18
steps :
@@ -27,19 +27,10 @@ jobs:
27
27
docker build -t vote-image ./vote
28
28
docker save vote-image -o vote-image.tar
29
29
30
- - name : Download Sysdig CLI Scanner (latest for amd64)
30
+ - name : Scan Docker image from archive with Sysdig
31
31
run : |
32
- curl -LO "https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/$(curl -L -s https://download.sysdig.com/scanning/sysdig-cli-scanner/latest_version.txt)/linux/amd64/sysdig-cli-scanner"
33
- chmod +x sysdig-cli-scanner
34
-
35
- - name : Scan Docker image from archive
36
- run : |
37
- ./sysdig-cli-scanner --standalone --input-file vote-image.tar vote-image:ci --console-log --detailed-policies-eval --full-vulns-table
38
- env :
39
- SECURE_API_TOKEN : ${{ secrets.SYSDIG_SECURE_TOKEN }}
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
40
33
41
34
- name : Scan IaC (k8s-specifications)
42
35
run : |
43
- ./sysdig-cli-scanner --apiurl ${{ secrets.SYSDIG_API_URL }} --iac scan ./k8s-specifications
44
- env :
45
- SECURE_API_TOKEN : ${{ secrets.SYSDIG_SECURE_TOKEN }}
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
You can’t perform that action at this time.
0 commit comments