Skip to content

added lifecycle variable type and structure #309

added lifecycle variable type and structure

added lifecycle variable type and structure #309

Workflow file for this run

---
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
test_terraform:
name: Test Terraform
runs-on: ubuntu-latest
steps:
- name: HashiCorp - Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- name: Terraform version
id: version
run: terraform version
- name: Terraform fmt
id: fmt
run: terraform fmt -check -diff -recursive
#continue-on-error: true
test_tfsec:
name: tfsec
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run tfsec and write pull request comments
uses: aquasecurity/tfsec-pr-commenter-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tfsec_args: --force-all-dirs
test_linter:
name: Linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
# Run Linter against code base
- name: Run linter against all changed files
uses: github/super-linter/slim@v4
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MULTI_STATUS: true
VALIDATE_MARKDOWN: false
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_TERRAFORM_TERRASCAN: false
VALIDATE_ALL_CODEBASE: false