Skip to content

Commit af42119

Browse files
committed
fix(release): update SBOM path to build/reports/cyclonedx/bom.json
CycloneDX Gradle plugin 3.x changed the output directory from build/reports/ to build/reports/cyclonedx/ (cyclonedxDirectBom task).
1 parent 5f22b47 commit af42119

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,6 @@ jobs:
7676
# Publish release
7777
# The tag name is release@x.y.z; strip the prefix to get the plain version.
7878
# -----------------------------------------------------------------------
79-
- name: Locate SBOM
80-
run: |
81-
BOM=$(find build -name "bom.json" | head -1)
82-
if [ -z "$BOM" ]; then
83-
echo "bom.json not found; available BOM files:"
84-
find build -name "bom*" || true
85-
exit 1
86-
fi
87-
echo "BOM_PATH=$BOM" >> "$GITHUB_ENV"
88-
echo "Located SBOM: $BOM"
89-
9079
- name: Publish GitHub Release
9180
env:
9281
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -97,4 +86,4 @@ jobs:
9786
--notes-file /tmp/CHANGELOG_RELEASE.md \
9887
build/distributions/*.zip \
9988
build/distributions/*.tar \
100-
"$BOM_PATH"
89+
build/reports/cyclonedx/bom.json

0 commit comments

Comments
 (0)