Skip to content

Commit d6944aa

Browse files
authored
ci: tests: build: Correct JSON data for predicate
1 parent 89e7b2d commit d6944aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
output-directory: sbom
5151
- name: in-toto attestation for cyclonedx SBOM
5252
id: in-toto-cyclonedx
53+
env:
54+
MODULE_NAME: httptest
5355
run: |
5456
echo "attestation<<GITHUB_OUTPUT_EOF" >> $GITHUB_OUTPUT
5557
(python -m json.tool --sort-keys | tee -a $GITHUB_OUTPUT) <<EOF
@@ -66,8 +68,7 @@ jobs:
6668
}
6769
],
6870
"predicateType": "https://cyclonedx.org/bom/v1.4",
69-
"predicate": $(cat "httptest-py${{ matrix.python-version }}.json")
70-
}
71+
"predicate": $(cat "${MODULE_NAME}-py${{ matrix.python-version }}.json")
7172
}
7273
EOF
7374
echo "GITHUB_OUTPUT_EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)