Nightly - tfsec Security Scan #424
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: Nightly - tfsec Security Scan | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '33 */12 * * *' | |
jobs: | |
tfsec: | |
name: Run tfsec Security Scan Report | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v3 | |
- name: Run tfsec scan with SARIF output | |
uses: aquasecurity/tfsec-sarif-action@master | |
with: | |
sarif_file: tfsec.sarif | |
full_repo_scan: true | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
# Path to SARIF file relative to the root of the repository | |
sarif_file: tfsec.sarif |