From fbae7d724b6c726151191fbd9246c252b67c3bb6 Mon Sep 17 00:00:00 2001 From: Roland <68095664+olaitan85@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:16:57 -0600 Subject: [PATCH 1/2] Create checkov.yaml --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..9f7240507 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: checkov +on: + pull_request: + push: + branches: + - main +jobs: + scan: + runs-on: ubuntu-latest + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for GitHub/codeql-action/upload-sarif to upload SARIF results + + steps: + - uses: actions/checkout@v2 + + - name: Run checkov + id: checkov + uses: bridgecrewio/checkov-action@master + with: + directory: code/ + #soft_fail: true + #api-key: ${{ secrets.BC_API_KEY }} + #env: + #PRISMA_API_URL: https://api4.prismacloud.io + + - name: Upload SARIF file + uses: GitHub/codeql-action/upload-sarif@v2 + + # Results are generated only on a success or failure + # this is required since GitHub by default won't run the next step + # when the previous one has failed. Alternatively, enable soft_fail in checkov action. + if: success() || failure() + with: + sarif_file: results.sarif From 81fb703b689dd32f90c269804d3a817a869a869b Mon Sep 17 00:00:00 2001 From: Roland <68095664+olaitan85@users.noreply.github.com> Date: Tue, 21 Jan 2025 17:17:57 -0600 Subject: [PATCH 2/2] Create Checkov --- Checkov | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Checkov diff --git a/Checkov b/Checkov new file mode 100644 index 000000000..a16506910 --- /dev/null +++ b/Checkov @@ -0,0 +1,19 @@ +name: IaC tag and trace + +on: + push: + pull_request: + +jobs: + yor: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v2 + name: Checkout repo + with: + fetch-depth: 0 + - name: Run yor action + uses: bridgecrewio/yor-action@main