Skip to content

Commit

Permalink
Merge pull request #103 from getwilds/scout-fix
Browse files Browse the repository at this point in the history
Fixing if statement in Docker Scout action
  • Loading branch information
tefirman authored Oct 21, 2024
2 parents 4f02f8d + 23acaf9 commit f48083d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-scout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
GH_ISSUES=$(gh issue list)
for image in *; do
if [ -d "$image" ] && [ "$image" != ".github" ] && [ $GH_ISSUES != *"$image Vulnerability Analysis"* ]; then
if [[ -d "$image" ]] && [[ "$image" != ".github" ]] && [[ $GH_ISSUES != *"$image Vulnerability Analysis"* ]]; then
CONTAINER="getwilds/$image:latest"
docker scout cves $CONTAINER --only-fixed --format sarif --output cve_check.json
NUM_VUL=$(jq '.runs[0].tool.driver.rules | length' cve_check.json)
Expand Down

0 comments on commit f48083d

Please sign in to comment.