Skip to content

Commit 523c5e2

Browse files
committed
Use consistent invocationId attribute
Update the SLSA Provenance generation code to always use the `.runDetails.metadata.invocationId` attribute. In some cases, Azure and Jenkins, `invocationId` was written as `invocationID` (upper case `D`). This follows the SLSA Provenance 1.0 spec: https://slsa.dev/spec/v1.0/provenance#buildmetadata Signed-off-by: Luiz Carvalho <[email protected]>
1 parent b3fb30b commit 523c5e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rhtap/att-predicate-azure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runDetails:
2222
id: "${AGENT_ID}"
2323
2424
metadata:
25-
invocationID: "${BUILD_BUILDURI}"
25+
invocationId: "${BUILD_BUILDURI}"
2626
startedOn: "$(cat $BASE_RESULTS/init/START_TIME)"
2727
finishedOn: "$(timestamp)"
2828

rhtap/att-predicate-jenkins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runDetails:
3232
jobUrl: "${JOB_URL}"
3333
3434
metadata:
35-
invocationID: "${BUILD_TAG}"
35+
invocationId: "${BUILD_TAG}"
3636
startedOn: "$(cat $BASE_RESULTS/init/START_TIME)"
3737
# Inaccurate, but maybe close enough
3838
finishedOn: "$(timestamp)"

0 commit comments

Comments
 (0)