fix(impact): load the impact report before assembling the evidence record
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:
1 parent
520931ca34
commit
328cc5c61b
1 file changed
+2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user