Skip to content

Commit 0f64cfe

Browse files
committed
[PLUTO-1411] Add trivy test
1 parent f85c39b commit 0f64cfe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/trivy-plugin-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ jobs:
3333
3434
- name: Run Trivy plugin tests
3535
run: |
36+
# Store the path to the CLI
37+
CLI_PATH="$(pwd)/cli-v2"
38+
# Change to test directory
3639
cd plugins/tools/trivy/test
3740
# Install the plugin
38-
../../../cli-v2 install
41+
"$CLI_PATH" install
3942
# Run analysis
40-
../../../cli-v2 analyze --tool trivy --format sarif --output actual.sarif
43+
"$CLI_PATH" analyze --tool trivy --format sarif --output actual.sarif
4144
# Compare with expected output
4245
diff expected.sarif actual.sarif
4346
# Clean up

0 commit comments

Comments
 (0)