Skip to content

Commit

Permalink
[#227] Use asdf tooling version
Browse files Browse the repository at this point in the history
  • Loading branch information
nvminhtue committed Jan 9, 2024
1 parent 0e4ff5f commit 4528510
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/test-generated-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
pull_request:
types: [opened, synchronize]

env:
TERRAFORM_VERSION: "1.5.5"
# env:
# TERRAFORM_VERSION: "1.5.5"

jobs:
test-generated-project:
Expand Down Expand Up @@ -39,18 +39,11 @@ jobs:
- name: Generate project
run: . ./scripts/generateAdvancedAWS.sh

- name: Install Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
- name: Install dependencies in .tool-versions
uses: asdf-vm/actions/install@v2

- name: Run Terraform format
run: terraform fmt -recursive -check

- name: Run trivy linter
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
hide-progress: false
# trivy-config: trivy.yaml
run: trivy config .

0 comments on commit 4528510

Please sign in to comment.