From 1ae481c63b4ac4e06aaa4a5c9a64af788ea6cf02 Mon Sep 17 00:00:00 2001 From: ehmidH <78127773+ehmidH@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:56:01 -0600 Subject: [PATCH 1/4] Create main.yml --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..00e3ec636 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +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 + + - name: Upload SARIF file + uses: GitHub/codeql-action/upload-sarif@v3 + + # 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 52f612731102503a597294da7c862d730efbfbaa Mon Sep 17 00:00:00 2001 From: ehmidH <78127773+ehmidH@users.noreply.github.com> Date: Thu, 5 Mar 2026 11:06:07 -0600 Subject: [PATCH 2/4] Update main.yml testing different runner --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00e3ec636..8e78a2b51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: - main jobs: scan: - runs-on: ubuntu-latest + runs-on: macos-latest permissions: contents: read # for actions/checkout to fetch code security-events: write # for GitHub/codeql-action/upload-sarif to upload SARIF results From 889910574c62c390b7417ca87d1db18538435b81 Mon Sep 17 00:00:00 2001 From: ehmidH <78127773+ehmidH@users.noreply.github.com> Date: Thu, 5 Mar 2026 11:09:22 -0600 Subject: [PATCH 3/4] Update main.yml reverted changes --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e78a2b51..ab2dcfff2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: - main jobs: scan: - runs-on: macos-latest + 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 From bb23d7a2d4afb0fa61f489679253dcd5bb689aef Mon Sep 17 00:00:00 2001 From: ehmidH <78127773+ehmidH@users.noreply.github.com> Date: Thu, 5 Mar 2026 11:16:11 -0600 Subject: [PATCH 4/4] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab2dcfff2..8e78a2b51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,7 @@ on: - main jobs: scan: - runs-on: ubuntu-latest + runs-on: macos-latest permissions: contents: read # for actions/checkout to fetch code security-events: write # for GitHub/codeql-action/upload-sarif to upload SARIF results