File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,19 @@ 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
30
+ - name : Download Sysdig CLI Scanner (latest for amd64)
31
31
run : |
32
- curl -LO https://download.sysdig.com/scanning/sysdig-cli-scanner/latest/ linux/sysdig-cli-scanner
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
33
chmod +x sysdig-cli-scanner
34
34
35
- - name : Scan Docker image from archive with Sysdig (binary)
35
+ - name : Scan Docker image from archive
36
36
run : |
37
- ./sysdig-cli-scanner --standalone --input-file vote-image.tar vote-image:ci --console-log --detailed-policies-eval --full-vulns-table -e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }}
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 }}
38
40
39
41
- name : Scan IaC (k8s-specifications)
40
42
run : |
41
- ./sysdig-cli-scanner --apiurl ${{ secrets.SYSDIG_API_URL }} --iac scan ./k8s-specifications -e SECURE_API_TOKEN=${{ secrets.SYSDIG_SECURE_TOKEN }}
43
+ ./sysdig-cli-scanner --apiurl ${{ secrets.SYSDIG_API_URL }} --iac scan ./k8s-specifications
44
+ env :
45
+ SECURE_API_TOKEN : ${{ secrets.SYSDIG_SECURE_TOKEN }}
You can’t perform that action at this time.
0 commit comments