|
@@ -54,7 +54,7 @@ jobs:
|
|
|
bandit -r backend/ -f sarif -o bandit-results.sarif --severity-level medium || true
|
|
bandit -r backend/ -f sarif -o bandit-results.sarif --severity-level medium || true
|
|
|
|
|
|
|
|
- name: Upload Bandit results to GitHub Security
|
|
- name: Upload Bandit results to GitHub Security
|
|
|
- uses: github/codeql-action/upload-sarif@v3
|
|
|
|
|
|
|
+ uses: github/codeql-action/upload-sarif@v4
|
|
|
if: always()
|
|
if: always()
|
|
|
with:
|
|
with:
|
|
|
sarif_file: bandit-results.sarif
|
|
sarif_file: bandit-results.sarif
|
|
@@ -73,7 +73,7 @@ jobs:
|
|
|
run: docker build -t bambuddy:security-scan .
|
|
run: docker build -t bambuddy:security-scan .
|
|
|
|
|
|
|
|
- name: Run Trivy vulnerability scanner
|
|
- name: Run Trivy vulnerability scanner
|
|
|
- uses: aquasecurity/trivy-action@master
|
|
|
|
|
|
|
+ uses: aquasecurity/trivy-action@v0.33.1
|
|
|
with:
|
|
with:
|
|
|
image-ref: 'bambuddy:security-scan'
|
|
image-ref: 'bambuddy:security-scan'
|
|
|
format: 'sarif'
|
|
format: 'sarif'
|
|
@@ -81,14 +81,14 @@ jobs:
|
|
|
severity: 'CRITICAL,HIGH,MEDIUM'
|
|
severity: 'CRITICAL,HIGH,MEDIUM'
|
|
|
|
|
|
|
|
- name: Upload Trivy results to GitHub Security
|
|
- name: Upload Trivy results to GitHub Security
|
|
|
- uses: github/codeql-action/upload-sarif@v3
|
|
|
|
|
|
|
+ uses: github/codeql-action/upload-sarif@v4
|
|
|
if: always()
|
|
if: always()
|
|
|
with:
|
|
with:
|
|
|
sarif_file: trivy-results.sarif
|
|
sarif_file: trivy-results.sarif
|
|
|
category: trivy
|
|
category: trivy
|
|
|
|
|
|
|
|
- name: Run Trivy for Dockerfile/IaC
|
|
- name: Run Trivy for Dockerfile/IaC
|
|
|
- uses: aquasecurity/trivy-action@master
|
|
|
|
|
|
|
+ uses: aquasecurity/trivy-action@v0.33.1
|
|
|
with:
|
|
with:
|
|
|
scan-type: 'config'
|
|
scan-type: 'config'
|
|
|
scan-ref: '.'
|
|
scan-ref: '.'
|
|
@@ -97,7 +97,7 @@ jobs:
|
|
|
severity: 'CRITICAL,HIGH,MEDIUM'
|
|
severity: 'CRITICAL,HIGH,MEDIUM'
|
|
|
|
|
|
|
|
- name: Upload Trivy config results
|
|
- name: Upload Trivy config results
|
|
|
- uses: github/codeql-action/upload-sarif@v3
|
|
|
|
|
|
|
+ uses: github/codeql-action/upload-sarif@v4
|
|
|
if: always()
|
|
if: always()
|
|
|
with:
|
|
with:
|
|
|
sarif_file: trivy-config-results.sarif
|
|
sarif_file: trivy-config-results.sarif
|