Skip to content

Commit

Permalink
Fixes #1642: Temporarily comment out Trivy scans
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshmurthy committed Oct 21, 2024
1 parent 3222d6f commit 47535aa
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1010,18 +1010,18 @@ jobs:

# Trivy and Grype are the scanners that GitLab integrates with (at the time of writing)

- name: Run Trivy security scan on the image
if: ${{ ! cancelled() }}
# https://aquasecurity.github.io/trivy/v0.43/getting-started/installation/#use-container-image
run: |
podman run --rm \
-v ${PODMAN_SOCK}:/var/run/docker.sock \
-v ${{github.workspace}}:${{github.workspace}} \
docker.io/aquasec/trivy:latest \
image \
--scanners vuln,secret --ignore-unfixed --exit-code=1 \
--secret-config=${{github.workspace}}/.github/trivy-secret.yaml \
${{ env.ImageName }}
# - name: Run Trivy security scan on the image
# if: ${{ ! cancelled() }}
# # https://aquasecurity.github.io/trivy/v0.43/getting-started/installation/#use-container-image
# run: |
# podman run --rm \
# -v ${PODMAN_SOCK}:/var/run/docker.sock \
# -v ${{github.workspace}}:${{github.workspace}} \
# docker.io/aquasec/trivy:latest \
# image \
# --scanners vuln,secret --ignore-unfixed --exit-code=1 \
# --secret-config=${{github.workspace}}/.github/trivy-secret.yaml \
# ${{ env.ImageName }}

- name: Run Grype security scan on the image
if: ${{ ! cancelled() }}
Expand Down

0 comments on commit 47535aa

Please sign in to comment.