Skip to content

Commit 4def727

Browse files
ci: name candidate SBOM from package version
1 parent ad35c49 commit 4def727

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ jobs:
8383
mkdir build-environment-evidence
8484
python -m pip list --format=freeze \
8585
| LC_ALL=C sort -f > build-environment-evidence/environment.lock
86+
package_version="$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
8687
cyclonedx-py environment --output-reproducible --of JSON \
8788
--pyproject pyproject.toml \
88-
-o build-environment-evidence/engraphis-${GITHUB_REF_NAME#v}.cdx.json
89+
-o "build-environment-evidence/engraphis-${package_version}.cdx.json"
8990
9091
- name: Build source and universal wheel distributions
9192
shell: bash

0 commit comments

Comments
 (0)