diff --git a/src/report/sarif.cpp b/src/report/sarif.cpp index 0377718..ea7b883 100644 --- a/src/report/sarif.cpp +++ b/src/report/sarif.cpp @@ -411,7 +411,7 @@ void writeFilteredSarif(std::ostream& out, const std::vector& findings, { {"name", "fold"}, {"version", foldVersion()}, - {"informationUri", "https://github.com/trvon/fold"}, + {"informationUri", "https://git.trevon.dev/trevon/fold"}, {"properties", { {"z3_version", Z3_get_full_version()}, diff --git a/tests/integration/test_scan_e2e.cpp b/tests/integration/test_scan_e2e.cpp index a645c11..160488a 100644 --- a/tests/integration/test_scan_e2e.cpp +++ b/tests/integration/test_scan_e2e.cpp @@ -101,6 +101,8 @@ TEST_CASE("SARIF keeps stable rule metadata for structural findings", "[sarif]") const auto& driver = sarif["runs"][0]["tool"]["driver"]; const auto& results = sarif["runs"][0]["results"]; + // fold lives only on git.trevon.dev; SARIF consumers follow this link. + REQUIRE(driver["informationUri"] == "https://git.trevon.dev/trevon/fold"); REQUIRE(results[0]["ruleId"] == "fold.clone"); REQUIRE(results[0]["properties"]["backend"] == "clang"); REQUIRE(results[1]["ruleId"] == "fold.high-complexity");