Skip to content

Commit

Permalink
Disable security scan in ci-pr.yml
Browse files Browse the repository at this point in the history
Added env to control the scan.
  • Loading branch information
Corneil du Plessis committed Nov 15, 2024
1 parent bfa3c51 commit 8ebc627
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: CI PRs
on:
pull_request:

env:
ENABLE_SECURITY_SCAN: 'false'

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -31,13 +34,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
if: ${{ env.ENABLE_SECURITY_SCAN == 'true' }}
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'table'
severity: 'CRITICAL,HIGH'
- name: 'Scanned'
if: ${{ env.ENABLE_SECURITY_SCAN == 'true' }}
shell: bash
run: echo "::info ::Scanned"
done:
Expand Down

0 comments on commit 8ebc627

Please sign in to comment.