Merge pull request #5 from debenstack/dev #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: checkov-check-terraform | |
# Only trigger, when the build workflow succeeded | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: read-all | |
jobs: | |
checkov-checks: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout Repository | |
- name : Check out Git Repository | |
uses: actions/checkout@v2 | |
# Checkov - Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code | |
- name: Run Checkov | |
run: | | |
docker run -t -v ${{ github.workspace }}:/tf --workdir /tf bridgecrew/checkov --directory /tf --skip-check CKV2_GHA_1 |