Upgrade CA #52
Workflow file for this run
This file contains hidden or 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 security test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - "**/*.tf" | |
| - ".github/workflows/checkov.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| checkov_security: | |
| name: Checkov security tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| pull-requests: read | |
| checks: write | |
| security-events: write | |
| actions: read | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
| with: | |
| egress-policy: audit | |
| - name: checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: prepare reports dir | |
| run: mkdir --parents ${{runner.temp}}/reports_sast_terraform/ | |
| - name: install checkov | |
| run: | | |
| pip3 install --upgrade checkov | |
| echo $PATH | |
| checkov --version | |
| which checkov | |
| - name: generate json report | |
| run: > | |
| checkov | |
| --config-file .config/sast_terraform_checkov_json.yml | |
| --directory . | |
| --output cli | |
| --output json | |
| --output sarif | |
| --output-file-path console,checkov-terraform-results.json,checkov-terraform-results.sarif |