Security #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Security | |
on: | |
workflow_call: | |
schedule: | |
# Weekly on Monday at 00:00 UTC | |
- cron: 0 0 * * 1 | |
jobs: | |
terraform-scan: | |
name: Terraform | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Scan | |
uses: aquasecurity/[email protected] | |
with: | |
exit-code: 1 | |
scan-ref: "infra/terraform" | |
scan-type: "config" | |
format: "sarif" | |
output: "trivy-results.sarif" | |
severity: "CRITICAL" | |
limit-severities-for-sarif: true | |
- name: Upload Results to GitHub Code Scanning | |
if: ${{ always() }} | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: "trivy-results.sarif" |