Skip to content

Commit

Permalink
Update malware.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ibreakthecloud committed Apr 8, 2024
1 parent 8502045 commit e4ae23f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/malware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
steps:
- uses: actions/checkout@v4

# Build docker image for service
- name: Build docker image
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: ${{ env.GROUP }}/${{ env.REPO }}:${{ github.sha }}

# Run Deepfence Malware Scanner to check for malwares in image
- name: Run Deepfence Malware Scanner
env:
Expand All @@ -36,7 +44,7 @@ jobs:
docker run -i --rm --net=host --privileged=true \
--cpus=0.3 \
-v /var/run/docker.sock:/var/run/docker.sock:rw deepfenceio/deepfence_malware_scanner_ce:2.1.1 \
-image-name "$NGINX" \
-image-name "$FULL_IMAGE_NAME" \
-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 e4ae23f

Please sign in to comment.