2024-03-10 21:55:02 +03:00
|
|
|
name: cyber
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trivy:
|
|
|
|
name: Trivy scan
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Run Trivy vulnerability scanner in repo mode
|
|
|
|
uses: aquasecurity/trivy-action@master
|
|
|
|
with:
|
|
|
|
scan-type: 'fs'
|
|
|
|
ignore-unfixed: true
|
|
|
|
format: 'sarif'
|
|
|
|
output: 'trivy-results.sarif'
|
|
|
|
severity: 'CRITICAL'
|
|
|
|
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
2024-05-06 12:55:37 +03:00
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
2024-03-10 21:55:02 +03:00
|
|
|
with:
|
|
|
|
sarif_file: 'trivy-results.sarif'
|