From 71f5566bcf416d050741c6959b2d43dc581a6e11 Mon Sep 17 00:00:00 2001 From: jmagee Date: Tue, 23 Apr 2024 11:54:23 +0100 Subject: [PATCH 1/2] CICDyaml --- .github/workflows/checkov.yaml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/checkov.yaml diff --git a/.github/workflows/checkov.yaml b/.github/workflows/checkov.yaml new file mode 100644 index 0000000..96930f0 --- /dev/null +++ b/.github/workflows/checkov.yaml @@ -0,0 +1,37 @@ +name: Checkov Github action + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + checkov-job: + permissions: write-all + runs-on: ubuntu-latest + name: Prisma Cloud + env: + PRISMA_API_URL: https://api4.prismacloud.io/ + steps: + - name: Checkout repo + uses: actions/checkout@master + - name: Run Prisma Cloud action + id: Checkov + uses: bridgecrewio/checkov-action@master + with: + directory: '.' + soft_fail: true + api-key: ${{ secrets.BC_API_KEY }} + - name: Expose report + uses: actions/upload-artifact@v3 + with: + name: SARIF results + path: results.sarif + - uses: github/codeql-action/upload-sarif@v2 + with: + # Path to SARIF file relative to the root of the repository + sarif_file: results.sarif \ No newline at end of file From 7319a75a6280823abfcd81aa5742d53048f830f9 Mon Sep 17 00:00:00 2001 From: elena-sanchez <73369592+elena-sanchez@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:40:15 -0700 Subject: [PATCH 2/2] Update checkov.yaml --- .github/workflows/checkov.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checkov.yaml b/.github/workflows/checkov.yaml index 96930f0..768e283 100644 --- a/.github/workflows/checkov.yaml +++ b/.github/workflows/checkov.yaml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest name: Prisma Cloud env: - PRISMA_API_URL: https://api4.prismacloud.io/ + PRISMA_API_URL: https://app0.prismacloud.io/ steps: - name: Checkout repo uses: actions/checkout@master @@ -34,4 +34,4 @@ jobs: - uses: github/codeql-action/upload-sarif@v2 with: # Path to SARIF file relative to the root of the repository - sarif_file: results.sarif \ No newline at end of file + sarif_file: results.sarif