Skip to content

Commit

Permalink
- fixing SBOM publishing for Java
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimu committed Jan 2, 2025
1 parent 1c51e3e commit e492bb2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/reusable.sbom.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,26 @@ jobs:
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Debug Java dependencies
if: inputs.project-type == 'java'
working-directory: ${{ inputs.working-directory }}
run: |
echo "Gradle Home: $GRADLE_USER_HOME"
echo "Project structure:"
find . -type f -name "*.jar" || true
echo "Gradle cache structure:"
find "${GRADLE_USER_HOME}/caches" -type f -name "*.jar" || true
echo "Runtime classpath:"
./gradlew -q printRuntimeClasspath
- name: Verify Syft Java scanning
if: inputs.project-type == 'java'
working-directory: ${{ inputs.working-directory }}
run: |
syft --version
echo "Testing direct Syft scan:"
syft packages . -vv || true
- name: Generate and publish SBOM
env:
PROJECT_VERSION: ${{ inputs.project-version != '' && inputs.project-version || steps.detect-version.outputs.version }}
Expand Down

0 comments on commit e492bb2

Please sign in to comment.