Skip to content

feat: Add initial Dockerfile, Pipfile.lock, and Terraform example for… #256

feat: Add initial Dockerfile, Pipfile.lock, and Terraform example for…

feat: Add initial Dockerfile, Pipfile.lock, and Terraform example for… #256

# https://github.com/aquasecurity/tfsec
# https://github.com/aquasecurity/tfsec-sarif-action
name: IaC Scanning (Terraform) with Aqua Security tfsec
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '15 03 * * 5'
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
jobs:
tfsec-scan:
name: Run tfsec sarif report
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run tfsec
uses: aquasecurity/tfsec-sarif-action@21ded20e8ca120cd9d3d6ab04ef746477542a608 # v0.1.4
with:
sarif_file: tfsec.sarif
- name: Upload SARIF file to GitHub Security tab
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
sarif_file: tfsec.sarif