diff --git a/AGENTS.md b/AGENTS.md
index 7161d8f8..62366dca 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -83,7 +83,7 @@ Regularly update the parent POM and project dependencies to ensure security and
Run `just update-dependencies` (executes `mvn versions:use-latest-versions`).
3. **Update All (Recommended)**:
- Run `just update` to update the parent POM, dependencies, flake, and the Sysdig CLI version in one go.
+ Run `just update` to update the Jenkins version, parent POM, dependencies, flake, the newest/oldest Sysdig CLI versions and regenerate the scanner fixtures in one go (fixture regeneration requires `SECURE_API_TOKEN`, optionally `SECURE_API_URL`).
### Updating Base Jenkins Version
**Important:** Update the base Jenkins version **before** updating the parent POM or other dependencies.
@@ -99,7 +99,8 @@ Regularly update the parent POM and project dependencies to ensure security and
Run `just verify` to ensure the plugin builds and tests pass with the new version.
### Updating Sysdig CLI Version
-To update the embedded Sysdig CLI version used by the scanner:
+The scanner versions are tracked with `newest-version-marker` / `oldest-version-marker` comments (do not remove them):
-1. Run `just update-sysdig-cli-version`.
- This fetches the latest version from Sysdig and updates `RemoteSysdigImageScanner.java`.
+1. Run `just update-cli-scanner` to set the default (newest) version, e.g. in `ScannerVersionResolver.java`.
+2. Run `just update-oldest-cli-scanner` to set the oldest supported version (365-day window).
+3. Run `just generate-scanner-fixtures` (requires `SECURE_API_TOKEN`) to regenerate the recorded scan-result fixtures for both.
diff --git a/README.md b/README.md
index ba47056b..7e39983e 100644
--- a/README.md
+++ b/README.md
@@ -130,8 +130,8 @@ The table below describes the available configuration options.
The plugin pins a default `sysdig-cli-scanner` version and is tested end-to-end against both the
default and the oldest still-maintained version:
-- Default pinned version: 1.30.2
-- Oldest maintained version tested: 1.23.0
+- Default pinned version: 1.32.0
+- Oldest maintained version tested: 1.24.0
Both values are kept in sync by `just update-cli-scanner` and `just update-oldest-cli-scanner`.
diff --git a/flake.lock b/flake.lock
index 70a6d2ad..4cb961e8 100644
--- a/flake.lock
+++ b/flake.lock
@@ -5,11 +5,11 @@
"systems": "systems"
},
"locked": {
- "lastModified": 1791914995,
- "narHash": "sha256-Zf/xfQEAasnwnmEfHqW/4hjDE/s44yn2hD4RuVIZRjA=",
+ "lastModified": 1794427683,
+ "narHash": "sha256-o7ey9gEilsxaifqJWnBDlYSKbNWYQYtKwDyXeZU2kaU=",
"owner": "numtide",
"repo": "flake-utils",
- "rev": "b7a79d3fea1e214f6d668d521cecec0c01e26544",
+ "rev": "cd489559845d81f673a12885576016c65cbe9363",
"type": "github"
},
"original": {
@@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1791487292,
- "narHash": "sha256-tqM7xDEsaeK1p6VvRygeZ9LkQRpUUkbRT02BHv6hnTM=",
+ "lastModified": 1794840529,
+ "narHash": "sha256-ySrWnmZB5UsZTYGHHnBjllT05O5iFjElCRS+mabtfP0=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "8edc0c72e3a38faf5434e40d1f19431125fe4b30",
+ "rev": "e21fec321d73511849707a7585e4ea155ee4bf40",
"type": "github"
},
"original": {
@@ -42,11 +42,11 @@
},
"systems": {
"locked": {
- "lastModified": 1681028828,
- "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "lastModified": 1791244623,
+ "narHash": "sha256-uuanbkFk8a313Zfrxdcz8Us/yQtaxNnKJtX8v0ZPpd8=",
"owner": "nix-systems",
"repo": "default",
- "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "rev": "d36eeed142f88b5a636f2e3856a53c61654cf29b",
"type": "github"
},
"original": {
diff --git a/pom.xml b/pom.xml
index 9348379b..cc30de89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.jenkins-ci.plugins
plugin
- 6.2236.v12dd4c483242
+ 6.2250.va_d01d559a_209
@@ -57,7 +57,7 @@
io.jenkins.tools.bom
bom-${jenkins.baseline}.x
- 7169.vb_32a_cfd93fa_6
+ 7349.vd0a_cb_6c87a_31
pom
import
diff --git a/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/jenkins/iac/entrypoint/IaCScanningBuilder.java b/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/jenkins/iac/entrypoint/IaCScanningBuilder.java
index 7f1dd8ef..7a2b6135 100644
--- a/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/jenkins/iac/entrypoint/IaCScanningBuilder.java
+++ b/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/jenkins/iac/entrypoint/IaCScanningBuilder.java
@@ -54,7 +54,7 @@
import org.kohsuke.stapler.QueryParameter;
public class IaCScanningBuilder extends Builder implements SimpleBuildStep {
- private static final String FIXED_SCANNED_VERSION = "1.30.2"; // newest-version-marker
+ private static final String FIXED_SCANNED_VERSION = "1.32.0"; // newest-version-marker
private String engineCredentialsId;
private boolean listUnsupported = false;
diff --git a/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerVersionResolver.java b/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerVersionResolver.java
index c8d62609..8f2b8960 100644
--- a/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerVersionResolver.java
+++ b/src/main/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerVersionResolver.java
@@ -24,7 +24,7 @@
* custom version configured by the user and falling back to a pinned version.
*/
public class ScannerVersionResolver {
- private static final String FIXED_SCANNED_VERSION = "1.30.2"; // newest-version-marker
+ private static final String FIXED_SCANNED_VERSION = "1.32.0"; // newest-version-marker
private final ImageScanningConfig config;
diff --git a/src/test/java/com/sysdig/jenkins/plugins/sysdig/TestMother.java b/src/test/java/com/sysdig/jenkins/plugins/sysdig/TestMother.java
index 6964dd39..c2cb30d4 100644
--- a/src/test/java/com/sysdig/jenkins/plugins/sysdig/TestMother.java
+++ b/src/test/java/com/sysdig/jenkins/plugins/sysdig/TestMother.java
@@ -26,9 +26,9 @@ public class TestMother {
* (via {@code just update-cli-scanner} / {@code just update-oldest-cli-scanner}), regenerate the
* matching fixtures with {@code just generate-scanner-fixtures}.
*/
- public static final String NEWEST_FIXTURE_VERSION = "1.30.2"; // newest-version-marker
+ public static final String NEWEST_FIXTURE_VERSION = "1.32.0"; // newest-version-marker
- public static final String OLDEST_FIXTURE_VERSION = "1.23.0"; // oldest-version-marker
+ public static final String OLDEST_FIXTURE_VERSION = "1.24.0"; // oldest-version-marker
private static final String NEWEST_FIXTURE = FIXTURE_DIR + "scanner_newest_scan_result.json.gz";
private static final String OLDEST_FIXTURE = FIXTURE_DIR + "scanner_oldest_scan_result.json.gz";
diff --git a/src/test/java/com/sysdig/jenkins/plugins/sysdig/application/ui/report/VulnerabilityReportProcessorTest.java b/src/test/java/com/sysdig/jenkins/plugins/sysdig/application/ui/report/VulnerabilityReportProcessorTest.java
index 5f5e44e4..144c3513 100644
--- a/src/test/java/com/sysdig/jenkins/plugins/sysdig/application/ui/report/VulnerabilityReportProcessorTest.java
+++ b/src/test/java/com/sysdig/jenkins/plugins/sysdig/application/ui/report/VulnerabilityReportProcessorTest.java
@@ -38,7 +38,7 @@ void applicationsAreReportedWithTheirApplicationType() {
.map(JsonElement::getAsJsonArray)
.filter(row -> row.get(3).getAsString().equals("grafana"))
.toList();
- assertEquals(3, grafanaRows.size());
+ assertEquals(4, grafanaRows.size());
assertTrue(grafanaRows.stream()
.allMatch(row -> row.get(6).getAsString().equals("Observability And Monitoring Software")));
assertTrue(grafanaRows.stream()
diff --git a/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EFreestyleTests.java b/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EFreestyleTests.java
index f9e15c16..b9702691 100644
--- a/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EFreestyleTests.java
+++ b/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EFreestyleTests.java
@@ -62,7 +62,7 @@ void testFreestyleWithCredentialsAndAssertLogOutput() throws Exception {
jenkins.assertLogContains("Attempting to download CLI", build);
jenkins.assertLogContains(
- "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.30.2", // newest-version-marker
+ "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.32.0", // newest-version-marker
build);
jenkins.assertLogContains("Starting scan", build);
jenkins.assertLogContains("--iac --apiurl=https://secure.sysdig.com --loglevel=info", build);
@@ -144,7 +144,7 @@ void testFreestyleWithAllConfigs() throws Exception {
b.setIsRecursive(false);
b.setSeverityThreshold("m");
b.setSysdigEnv("https://us2.app.sysdig.com");
- b.setVersion("1.23.0"); // oldest-version-marker
+ b.setVersion("1.24.0"); // oldest-version-marker
})
.build();
@@ -152,7 +152,7 @@ void testFreestyleWithAllConfigs() throws Exception {
jenkins.assertLogContains("Attempting to download CLI", build);
jenkins.assertLogContains(
- "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.23.0", // oldest-version-marker
+ "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.24.0", // oldest-version-marker
build);
jenkins.assertLogContains("Starting scan", build);
jenkins.assertLogContains("--iac --apiurl=https://us2.app.sysdig.com --loglevel=info", build);
diff --git a/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EPipelineTests.java b/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EPipelineTests.java
index 8aa5793f..a1c753b7 100644
--- a/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EPipelineTests.java
+++ b/src/test/java/com/sysdig/jenkins/plugins/sysdig/e2e/IaCScanE2EPipelineTests.java
@@ -53,7 +53,7 @@ void testPipelineWithCredentialsAndAssertLogOutput() throws Exception {
jenkins.assertLogContains("Attempting to download CLI", build);
jenkins.assertLogContains(
- "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.30.2", // newest-version-marker
+ "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.32.0", // newest-version-marker
build);
jenkins.assertLogContains("Starting scan", build);
jenkins.assertLogContains("--iac --apiurl=https://secure.sysdig.com --loglevel=info", build);
@@ -72,14 +72,14 @@ void testPipelineWithAllConfigs() throws Exception {
isRecursive: false,
severityThreshold: 'm',
sysdigEnv: 'https://us2.app.sysdig.com',
- version: '1.23.0'""") // oldest-version-marker
+ version: '1.24.0'""") // oldest-version-marker
.buildWithRemoteExecution();
var build = jenkins.buildAndAssertStatus(Result.FAILURE, job);
jenkins.assertLogContains("Attempting to download CLI", build);
jenkins.assertLogContains(
- "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.23.0", // oldest-version-marker
+ "Downloading https://download.sysdig.com/scanning/bin/sysdig-cli-scanner/1.24.0", // oldest-version-marker
build);
jenkins.assertLogContains("Starting scan", build);
jenkins.assertLogContains("--iac --apiurl=https://us2.app.sysdig.com --loglevel=info", build);
diff --git a/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerBinaryProviderTest.java b/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerBinaryProviderTest.java
index 184428a6..4c801a3d 100644
--- a/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerBinaryProviderTest.java
+++ b/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/ScannerBinaryProviderTest.java
@@ -20,7 +20,7 @@
class ScannerBinaryProviderTest {
/** Pinned default version. Kept in sync by {@code just update-cli-scanner}; do not drop the marker. */
- private static final String PINNED_VERSION = "1.30.2"; // newest-version-marker
+ private static final String PINNED_VERSION = "1.32.0"; // newest-version-marker
/** Arbitrary version for the URL-shape tests below: they assert os/arch mapping, not the pin. */
private static final String ANY_VERSION = "1.27.2";
diff --git a/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/JsonScanResultTest.java b/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/JsonScanResultTest.java
index 283834c0..65630e88 100644
--- a/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/JsonScanResultTest.java
+++ b/src/test/java/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/JsonScanResultTest.java
@@ -235,7 +235,7 @@ void whenParsingNewestScannerOutputApplicationsAreParsedAsApplications() {
assertEquals(1, result.applications().size());
Application grafana = result.applications().iterator().next();
- assertEquals("219adaa3-9c69-4f07-adc8-90fab4a74622", grafana.id());
+ assertEquals("94cfb0f5-a6e8-447c-adfd-127bfc613bd4", grafana.id());
assertEquals(Component.ComponentKind.Application, grafana.kind());
assertEquals("grafana", grafana.name());
assertEquals("9.5.21", grafana.version());
@@ -254,7 +254,7 @@ void whenParsingNewestScannerOutputApplicationsAreParsedAsApplications() {
assertTrue(layer.components().contains(grafana));
// Vulnerabilities are linked both ways.
- assertEquals(3, grafana.vulnerabilities().size());
+ assertEquals(4, grafana.vulnerabilities().size());
// CVE-2025-1088 is only found in the application.
Vulnerability grafanaVuln =
result.findVulnerabilityByCVE("CVE-2025-1088").orElseThrow();
@@ -281,7 +281,7 @@ void whenParsingNewestScannerOutputGoModulesArePackagesWithPolicyFailures() {
.flatMap(r -> r.failures().stream())
.filter(f -> f.component() instanceof Package p && p.type() == PackageType.Golang)
.count();
- assertEquals(206, failuresOnGoModules);
+ assertEquals(218, failuresOnGoModules);
}
@Test
diff --git a/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_newest_scan_result.json.gz b/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_newest_scan_result.json.gz
index 1cf7fd54..41ffb450 100644
Binary files a/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_newest_scan_result.json.gz and b/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_newest_scan_result.json.gz differ
diff --git a/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_oldest_scan_result.json.gz b/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_oldest_scan_result.json.gz
index 44f20ae6..035e46b7 100644
Binary files a/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_oldest_scan_result.json.gz and b/src/test/resources/com/sysdig/jenkins/plugins/sysdig/infrastructure/scanner/report/v1/scanner_oldest_scan_result.json.gz differ