File tree 2 files changed +39
-2
lines changed 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 77
77
echo "Scan failed as expected."
78
78
fi
79
79
80
+ scan-with-old-scanner-version :
81
+ runs-on : ubuntu-latest
82
+
83
+ steps :
84
+ # This step checks out a copy of your repository.
85
+ - name : Check out repository
86
+ uses : actions/checkout@v4
87
+
88
+ - name : Scan dummy-vuln-app from registry
89
+ id : scan
90
+ uses : ./
91
+ continue-on-error : true
92
+ with :
93
+ # Old scanner version
94
+ cli-scanner-version : 1.8.1
95
+ # Tag of the image to analyse
96
+ image-tag : sysdiglabs/dummy-vuln-app:latest
97
+ # API token for Sysdig Scanning auth
98
+ sysdig-secure-token : ${{ secrets.KUBELAB_SECURE_API_TOKEN }}
99
+ stop-on-failed-policy-eval : true
100
+ stop-on-processing-error : true
101
+ severity-at-least : medium
102
+
103
+ - name : Upload SARIF file
104
+ if : success() || failure() # Upload results regardless previous step fails
105
+ uses : github/codeql-action/upload-sarif@v3
106
+ with :
107
+ sarif_file : ${{ github.workspace }}/sarif.json
108
+
109
+ - name : Check that the scan has failed
110
+ run : |
111
+ if [ "${{ steps.scan.outcome }}" == "success" ]; then
112
+ echo "Scan succeeded but the step should fail."
113
+ exit 1
114
+ else
115
+ echo "Scan failed as expected."
116
+ fi
117
+
80
118
standalone-scan-from-registry :
81
119
runs-on : ubuntu-latest
82
120
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ description: 'Perform image analysis on locally built container image and post t
3
3
inputs :
4
4
cli-scanner-url :
5
5
description : URL to sysdig-cli-scanner binary download
6
- default : https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.8.1/linux/amd64/sysdig-cli-scanner
7
6
required : false
8
7
cli-scanner-version :
9
8
description : Custom sysdig-cli-scanner version to download
10
- default : " 1.8.1 "
9
+ default : " 1.13.0 "
11
10
required : false
12
11
registry-user :
13
12
description : Registry username.
You can’t perform that action at this time.
0 commit comments