Handle nested release evidence checksums
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 08:59:53 +02:00
parent a70cb79e06
commit 33bcd0f3bd
2 changed files with 4 additions and 1 deletions
@@ -74,6 +74,9 @@ def test_release_package_signature_and_checksums_fail_closed(tmp_path: Path) ->
package.mkdir()
evidence = package / "readiness.txt"
evidence.write_text("passed\n", encoding="utf-8")
nested_checksums = package / "backup" / module.CHECKSUMS_NAME
nested_checksums.parent.mkdir()
nested_checksums.write_text("backup evidence\n", encoding="utf-8")
identity = "geointel-release"
namespace = "geointel-release"
(package / module.SIGNERS_NAME).write_text(
+1 -1
View File
@@ -114,7 +114,7 @@ def verify_checksums(package_dir: Path) -> None:
actual_paths = {
path.relative_to(package_dir).as_posix()
for path in package_files(package_dir, include_generated=True)
if path.name != CHECKSUMS_NAME
if path.relative_to(package_dir).as_posix() != CHECKSUMS_NAME
}
if expected_paths != actual_paths:
raise RuntimeError(