Skip to content

Commit 03aeca4

Browse files
authored
Adapt to json v1 format (#78)
* Adapt action to support JSON V1 format * Bump CLI to 1.22.3 * Update docs and minimum version to 1.18.0 * Bump to version 6.0.0 * Update documentation to use @v6 instead of @v5
1 parent 2b20616 commit 03aeca4

18 files changed

+24955
-9570
lines changed

.github/workflows/ci-scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
continue-on-error: true
9292
with:
9393
# Old scanner version
94-
cli-scanner-version: 1.8.1
94+
cli-scanner-version: 1.18.0
9595
# Tag of the image to analyse
9696
image-tag: sysdiglabs/dummy-vuln-app:latest
9797
# API token for Sysdig Scanning auth

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This action performs analysis on a specific container image and posts the result
1010
|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------|
1111
| `cli-scanner-url` | URL to `sysdig-cli-scanner` binary download. The action will detect the runner OS and architecture. For more info about the Sysdig CLI Scanner download visit [the official documentation](https://docs.sysdig.com/en/docs/installation/sysdig-secure/install-vulnerability-cli-scanner/). | |
1212
| `mode` | Mode of operation. Can be "vm" or "iac". | `vm` |
13-
| `cli-scanner-version` | Custom sysdig-cli-scanner version to download. If using iac mode, minimum required version is 1.9.0. Please note that for VM mode the Action has only been tested with the current default version and it is not guaranteed that it will work as expected with other versions. | `1.22.1` |
13+
| `cli-scanner-version` | Custom sysdig-cli-scanner version to download. Minimum required version is 1.18.0. Please note that for VM mode the Action has only been tested with the current default version and it is not guaranteed that it will work as expected with other versions. | `1.22.3` |
1414
| `registry-user` | Registry username to authenticate to while pulling the image to scan. | |
1515
| `registry-password` | Registry password to authenticate to while pulling the image to scan. | |
1616
| `stop-on-failed-policy-eval` | Fail the job if the Policy Evaluation is Failed. | |
@@ -64,7 +64,7 @@ You need to assign an ID to the Sysdig Scan Action step, like:
6464

6565
- name: Scan image
6666
id: scan
67-
uses: sysdiglabs/scan-action@v5
67+
uses: sysdiglabs/scan-action@v6
6868
with:
6969
...
7070
```
@@ -95,8 +95,7 @@ The `if: success() || failure()` option makes sure the SARIF report is uploaded
9595
9696
- name: Scan image
9797
id: scan
98-
uses: sysdiglabs/scan-action@v5
99-
with:
98+
uses: sysdiglabs/scan-action@v6
10099
image-tag: sysdiglabs/dummy-vuln-app:latest
101100
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
102101
@@ -114,7 +113,7 @@ The `if: success() || failure()` option makes sure the SARIF report is uploaded
114113
...
115114
116115
- name: Scan image
117-
uses: sysdiglabs/scan-action@v5
116+
uses: sysdiglabs/scan-action@v6
118117
with:
119118
image-tag: "sysdiglabs/dummy-vuln-app:latest"
120119
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
@@ -126,10 +125,10 @@ The `if: success() || failure()` option makes sure the SARIF report is uploaded
126125
...
127126
128127
- name: Scan infrastructure
129-
uses: sysdiglabs/scan-action@v5
128+
uses: sysdiglabs/scan-action@v6
130129
with:
131130
sysdig-secure-token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
132-
cli-scanner-version: 1.9.0
131+
cli-scanner-version: 1.22.3
133132
mode: iac
134133
iac-scan-path: ./terraform
135134
```

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ inputs:
55
description: URL to sysdig-cli-scanner binary download
66
required: false
77
cli-scanner-version:
8-
description: Custom sysdig-cli-scanner version to download
9-
default: "1.22.1"
8+
description: Custom sysdig-cli-scanner version to download. Oldest supported version is 1.18.0.
9+
default: "1.22.3"
1010
required: false
1111
registry-user:
1212
description: Registry username.

0 commit comments

Comments
 (0)