diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 51e41e0a8..ad069cb1b 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -77,8 +77,10 @@ jobs: ################################################# - name: Scan Artifact run: | - jf scan /path/to/artifact - + latest_jar=$(find target -name "*.jar" | sort | tail -n 1) + echo "Scanning: $latest_jar" + jf scan "$latest_jar" + ################################################# # 9) Build Docker Image #################################################