Skip to content

Commit 203fca2

Browse files
committed
chore(ci): trivy param
1 parent 84e8d7d commit 203fca2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Follow these conventions:
2525
Project-specific rules:
2626
- Python: 4 spaces (override BC Gov standard)
2727
- APIs: Additional validation for public endpoints
28-
- Branches: feature/JIRA-123-description
28+
- Branches: always created from `main` (`git checkout main && git pull && git checkout -b feature/JIRA-123-description`)
2929

3030
Never:
3131
- Create duplicate files

.github/workflows/analysis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,23 @@ jobs:
2121
trivy:
2222
name: Trivy Security Scan
2323
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
24-
runs-on: ubuntu-24.04
24+
continue-on-error: true
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 1
2527
permissions:
2628
contents: read
2729
security-events: write
2830
steps:
2931
- uses: actions/checkout@v6
3032

3133
- name: Run Trivy vulnerability scanner in repo mode
32-
uses: aquasecurity/trivy-action@0.34.1
34+
uses: aquasecurity/trivy-action@e368e328979b113139d6f9068e03accaed98a518 # 0.34.1
3335
with:
3436
format: "sarif"
3537
output: "trivy-results.sarif"
3638
ignore-unfixed: true
3739
scan-type: "fs"
38-
scanners: "vuln,secret,config"
40+
scanners: "vuln,secret,misconfig"
3941
severity: "CRITICAL,HIGH"
4042

4143
- name: Upload Trivy scan results to GitHub Security tab

0 commit comments

Comments
 (0)