feat: Add terraform test github action #4
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 | |
# on: | |
# push: | |
# branches: [ "main"] | |
# pull_request: | |
# branches: [ "main" ] | |
# # Allows you to run this workflow manually from the Actions tab | |
# workflow_dispatch: | |
# jobs: | |
# scan: | |
# permissions: | |
# contents: read | |
# security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
# actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Checkov GitHub Action | |
# uses: bridgecrewio/checkov-action@v12 | |
# with: | |
# output_format: cli,sarif | |
# output_file_path: console,results.sarif | |
# - name: Upload SARIF file | |
# uses: github/codeql-action/upload-sarif@v2 | |
# if: success() || failure() | |
# with: | |
# sarif_file: results.sarif |