use tfenv auto install to install terraform in runtime so we don't ne… #292
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: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Check TFLint Version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0 | |
- name: Docker Build Test | |
run: | | |
docker build $(sh build-arg-helper.sh version.env) -t localrunner . | |
- name: Trivy Scan | |
run: | | |
docker run -v /var/run/docker.sock:/var/run/docker.sock aquasec/trivy image --timeout 120m --exit-code 1 --severity HIGH,CRITICAL localrunner |