Skip to content

Commit c4f4939

Browse files
authored
feat: update scanner version to 1.13.0 (#56)
1 parent f9727e9 commit c4f4939

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/ci-scan.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,44 @@ jobs:
7777
echo "Scan failed as expected."
7878
fi
7979
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+
80118
standalone-scan-from-registry:
81119
runs-on: ubuntu-latest
82120

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ description: 'Perform image analysis on locally built container image and post t
33
inputs:
44
cli-scanner-url:
55
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
76
required: false
87
cli-scanner-version:
98
description: Custom sysdig-cli-scanner version to download
10-
default: "1.8.1"
9+
default: "1.13.0"
1110
required: false
1211
registry-user:
1312
description: Registry username.

0 commit comments

Comments
 (0)