Skip to content

Instantly share code, notes, and snippets.

@kojiromike
Last active July 5, 2023 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kojiromike/e5a449cd037044507512f002adc93f03 to your computer and use it in GitHub Desktop.
Save kojiromike/e5a449cd037044507512f002adc93f03 to your computer and use it in GitHub Desktop.
##
# https://aquasecurity.github.io/tfsec
name: tfsec
on:
push:
branches:
- main
pull_request:
jobs:
tfsec:
name: tfsec
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3.5.3
- name: tfsec
uses: aquasecurity/tfsec-action@v1.0.3
with:
format: sarif
github_token: ${{ secrets.GITHUB_TOKEN }}
additional_args: --out tfsec.sarif
- name: Upload SARIF Results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: tfsec.sarif
category: tfsec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment