From 38e7082be69cd7e7c0996a45fee5a19e6464df69 Mon Sep 17 00:00:00 2001 From: zzzm1lo <160062868+zzzm1lo@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:59:09 -0400 Subject: [PATCH 1/2] Create tfsec.yml --- .github/workflows/tfsec.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/tfsec.yml diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml new file mode 100644 index 0000000..81cc74d --- /dev/null +++ b/.github/workflows/tfsec.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: [ "prod","dev","staging" ] + pull_request: + branches: [ "prod" ] + schedule: + - cron: '41 9 * * 6' + +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@v3 + + - name: Run tfsec + uses: aquasecurity/tfsec-sarif-action@21ded20e8ca120cd9d3d6ab04ef746477542a608 + with: + sarif_file: tfsec.sarif + + - 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 From f366b913dd0cd6e25ea0b102297eaf8dce6b54ba Mon Sep 17 00:00:00 2001 From: zzzm1lo <160062868+zzzm1lo@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:10:26 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5d90a31..ebe5e3b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # week11 Week11: working with github actions +uopdated version