From 94a880fab43fdb8fc615c6eb249342d73dd603ab Mon Sep 17 00:00:00 2001 From: ArnyDnD <12085915+ArnyDnD@users.noreply.github.com> Date: Mon, 21 Feb 2022 20:21:17 +0100 Subject: [PATCH] Add tfsec workflow file --- .github/workflows/tfsec-analysis.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/tfsec-analysis.yml diff --git a/.github/workflows/tfsec-analysis.yml b/.github/workflows/tfsec-analysis.yml new file mode 100644 index 0000000..59b5fab --- /dev/null +++ b/.github/workflows/tfsec-analysis.yml @@ -0,0 +1,38 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: tfsec + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: '0 0 * * 1' + +jobs: + tfsec: + name: Run tfsec sarif report + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Clone repo + uses: actions/checkout@v2 + + - name: Run tfsec + uses: tfsec/tfsec-sarif-action@9a83b5c3524f825c020e356335855741fd02745f + with: + sarif_file: tfsec.sarif + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v1 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: tfsec.sarif