Skip to content

Commit fe78bcc

Browse files
committed
chore: conditionally run Trivy vulnerability scanner for PHP 8.3 in GitHub Actions workflow
1 parent d0f0f15 commit fe78bcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565

6666
- name: Run Trivy vulnerability scanner in repo mode
6767
uses: aquasecurity/[email protected]
68+
if: ${{ matrix.php-versions == '8.3' }}
6869
with:
6970
scan-type: 'fs'
7071
ignore-unfixed: true
@@ -74,5 +75,6 @@ jobs:
7475

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

0 commit comments

Comments
 (0)