diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml new file mode 100644 index 0000000000..df78cf068e --- /dev/null +++ b/.github/workflows/tfsec.yml @@ -0,0 +1,30 @@ +name: tfsec +on: + push: + branches: + - main + paths: + - '**.tf' + pull_request: + paths: + - '**.tf' + workflow_dispatch: # Manual dispatch +jobs: + tfsec: + name: tfsec sarif report + runs-on: ubuntu-latest + + steps: + - name: Clone repo + uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 + + - name: tfsec + uses: tfsec/tfsec-sarif-action@7ae00b384bff7f14cfa52cc3c73a5e6807a41398 + with: + sarif_file: tfsec.sarif + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@883476649888a9e8e219d5b2e6b789dc024f690c # v1 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: tfsec.sarif