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 committed Nov 15, 2024
1 parent 4405e22 commit a3eecbe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 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 All @@ -17,3 +20,26 @@ jobs:
timeout-minutes: 75
run: |
./mvnw -B -s .github/settings.xml -Pdocs clean install
scan:
runs-on: ubuntu-latest
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:
runs-on: ubuntu-latest
needs: [ scan, build ]
steps:
- name: 'Done'
shell: bash
run: echo "::info ::Done"

0 comments on commit a3eecbe

Please sign in to comment.