Fix zizmor warnings in github actions #98
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: Terraform | |
on: | |
pull_request: | |
paths: | |
- 'terraform/**' | |
- '.github/workflows/terraform.yml' | |
push: | |
branches: | |
- main | |
paths: | |
- terraform/ | |
- '.github/workflows/terraform.yml' | |
jobs: | |
terraform: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- run: terraform -chdir=terraform/ fmt -check | |
- run: terraform -chdir=terraform/ init -backend=false | |
# Need to have a values.yaml for validate to pass. | |
- run: cp terraform/values.yaml.template terraform/values.yaml | |
- run: terraform -chdir=terraform/ validate |