chore(deps): bump golang.org/x/crypto from 0.0.0-20190308221718-c2843e01d9a2 to 0.31.0 in /scripts/generate-github-app-user-access-token #3273
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-tools | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
tflint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.tflint.d/plugins | |
key: tflint-${{ hashFiles('.tflint.hcl') }} | |
- uses: terraform-linters/setup-tflint@v4 | |
with: | |
tflint_version: v0.44.1 | |
- run: find . -type f -name "*.tfvars" -delete # remove terraform variable files before linting | |
- run: tflint --version | |
- run: tflint --init | |
- run: tflint -f compact --recursive -c $(realpath .tflint.hcl) | |
tfsec: | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
steps: | |
- uses: actions/[email protected] | |
- uses: aquasecurity/[email protected] | |
with: | |
tfsec_args: --force-all-dirs --soft-fail -m=CRITICAL --no-module-downloads --exclude-path=terraform/aws-accounts/cloud-platform-ephemeral-test --exclude-path=terraform/aws-accounts/cloud-platform-dsd --exclude-path=terraform/aws-accounts/cloud-platform-aws/vpc/kops --exclude-path=terraform/modules | |
sarif_file: tfsec.sarif | |
- uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: tfsec.sarif |