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 e492bb2 commit e9502fa
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/reusable.sbom.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,27 @@ jobs:
if: inputs.project-type == 'java'
working-directory: ${{ inputs.working-directory }}
run: |
echo "Gradle Home: $GRADLE_USER_HOME"
echo "Environment:"
echo "JAVA_HOME=$JAVA_HOME"
echo "GRADLE_USER_HOME=$GRADLE_USER_HOME"
echo "Gradle version and info:"
./gradlew --version
echo "Project dependencies:"
./gradlew dependencies --configuration runtimeClasspath
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
find . -type f -name "*.jar"
echo "Gradle cache location:"
if [ -z "$GRADLE_USER_HOME" ]; then
echo "Looking in default ~/.gradle location"
ls -la ~/.gradle/caches || true
else
echo "Looking in $GRADLE_USER_HOME/caches"
ls -la $GRADLE_USER_HOME/caches || true
fi
- name: Verify Syft Java scanning
if: inputs.project-type == 'java'
Expand Down

0 comments on commit e9502fa

Please sign in to comment.