Skip to content

Commit

Permalink
Update malware.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ibreakthecloud authored Apr 8, 2024
1 parent e4ae23f commit dd484e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/malware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
malware-scanner:
Expand Down Expand Up @@ -34,7 +31,6 @@ jobs:
DEEPFENCE_CONSOLE_URL: ${{ env.DEEPFENCE_CONSOLE_URL }}
DEEPFENCE_KEY: ${{ env.DEEPFENCE_KEY }}
FULL_IMAGE_NAME: ${{ env.GROUP }}/${{ env.REPO }}:${{ github.sha }}
NGINX: "nginx:latest"
FAIL_MALWARE_COUNT: 100 # Fail build if number of malwares found is >= this number. Set -1 to pass regardless of malwares.
FAIL_HIGH_MALWARE_COUNT: 10 # Fail build if number of high malwares found is >= this number. Set -1 to pass regardless of high malwares.
FAIL_MEDIUM_MALWARE_COUNT: 20 # Fail build if number of medium malwares found is >= this number. Set -1 to pass regardless of medium malwares.
Expand All @@ -45,6 +41,8 @@ jobs:
--cpus=0.3 \
-v /var/run/docker.sock:/var/run/docker.sock:rw deepfenceio/deepfence_malware_scanner_ce:2.1.1 \
-image-name "$FULL_IMAGE_NAME" \
-console-url "$DEEPFENCE_CONSOLE_URL" \
-deepfence-key "$DEEPFENCE_KEY" \
-fail-on-count=$FAIL_MALWARE_COUNT \
-fail-on-high-count=$FAIL_HIGH_MALWARE_COUNT \
-fail-on-medium-count=$FAIL_MEDIUM_MALWARE_COUNT -\
Expand Down

0 comments on commit dd484e4

Please sign in to comment.