introduce tf best practices (#4) #5
Workflow file for this run
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: release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: Terraform Init | |
id: init | |
run: terraform init | |
- name: Terraform Validate | |
id: validate | |
run: terraform validate | |
checkov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Scan with Checkov | |
id: checkov | |
uses: bridgecrewio/checkov-action@v12 | |
with: | |
directory: . | |
framework: terraform | |
quiet: true | |
download_external_modules: false | |
output_format: cli,sarif | |
output_file_path: console,results.sarif | |
skip_path: examples | |
release: | |
runs-on: ubuntu-latest | |
needs: [test, checkov] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: softprops/action-gh-release@v2 |