Skip to content

Commit

Permalink
Update checkov.yaml
Browse files Browse the repository at this point in the history
updated version
  • Loading branch information
djmensah authored Oct 4, 2023
1 parent b5b9516 commit da3917b
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/checkov.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
steps:

on: [push]

env:
IMAGE_NAME: ${{ github.repository }}:${{ github.sha }}
IMAGE_PATH: /path/
PRISMA_API_URL: https://api.prismacloud.io

jobs:
checkov-image-scan:
runs-on: ubuntu-latest
name: checkov-image-scan
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@master

- name: Build the image
run: docker build -t ${{ env.IMAGE_NAME }} ${{ env.IMAGE_PATH }}

- name: Run Prisma Cloud
id: prisma-cloud
uses: bridgecrewio/checkov-action@master
env:
PRISMA_API_URL: https://api.prismacloud.io
- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@master
with:
api-key: ${{ secrets.BC_API_KEY }}
quiet: true # optional: display only failed checks
soft_fail: true # optional: do not return an error code if there are failed checks
log_level: DEBUG # optional: set log level. Default WARNING
docker_image: ${{ env.IMAGE_NAME }} # define the name of the image to scan
dockerfile_path: ${{ format('{0}/Dockerfile', env.IMAGE_PATH) }} # path to the Dockerfile
container_user: 1000 # optional: Define what UID and / or what GID to run the container under to prevent permission issues
api-key: ${{ secrets.BC_API_KEY }} # Bridgecrew API key stored as a GitHub secret

0 comments on commit da3917b

Please sign in to comment.