fix(impact): load the impact report before assembling the evidence record
ci/woodpecker/pr/eco Pipeline was successful
ci/woodpecker/push/eco Pipeline was canceled

The candidate evidence heredoc referenced the report without reading it after the
rebase; define the report from <work>/impact.json (or None when no accepted ref
was available) before building the record.
This commit was merged in pull request #14.
This commit is contained in:
cflmy committed 2026-11-27 02:05:33 +08:00
1 parent 520931ca34
commit 328cc5c61b
1 file changed
+2
+2
View File
@@ -157,6 +157,8 @@ python3 - "$work" "$root_commit" "$source_sha" "$bundle_digest" "$bundle_aliases
import hashlib, json, pathlib, sys
work = pathlib.Path(sys.argv[1])
archive = pathlib.Path(sys.argv[6])
impact_path = work / "impact.json"
impact = json.loads(impact_path.read_text()) if impact_path.is_file() else None
evidence = {
"schema": "marqdo.ecosystem-integration",
"schema_version": 1,