Skip to content

Commit

Permalink
add manual security scanning job
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Nov 15, 2024
1 parent 4309dc2 commit 42e781a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/security-scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ jobs:
scan-ref: '.'
trivy-config: trivy.yaml

security-scan-manual:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: trivy.yaml

security-scan-pull-request:
if: github.event_name == 'pull_request'
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 42e781a

Please sign in to comment.