Skip to content

Commit

Permalink
chore: conditionally run Trivy vulnerability scanner for PHP 8.3 in G…
Browse files Browse the repository at this point in the history
…itHub Actions workflow
  • Loading branch information
bbsnly committed Jan 24, 2025
1 parent d0f0f15 commit fe78bcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.28.0
if: ${{ matrix.php-versions == '8.3' }}
with:
scan-type: 'fs'
ignore-unfixed: true
Expand All @@ -74,5 +75,6 @@ jobs:

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: ${{ matrix.php-versions == '8.3' }}
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit fe78bcc

Please sign in to comment.