mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 01:01:31 +03:00
29 lines
623 B
YAML
29 lines
623 B
YAML
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
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
with:
|
|
sarif_file: 'trivy-results.sarif'
|