-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also: * bumped tf version in pipeline to 1.7 * bumped cache action
- Loading branch information
1 parent
90acb99
commit 1646e63
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
terraform: [ ~1.3.0 ] | ||
terraform: [ ~1.7 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ~/.tflint.d/plugins | ||
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }} | ||
|
@@ -37,9 +37,27 @@ jobs: | |
|
||
- run: make tflint | ||
|
||
- name: Terraform security scan | ||
uses: aquasecurity/[email protected] | ||
- name: trivy config | ||
run: | | ||
cat >> ./trivy.yaml << EOF | ||
# see https://aquasecurity.github.io/trivy/latest/docs/references/configuration/config-file/ for reference | ||
exit-code: 1 | ||
exit-on-eol: 1 | ||
misconfiguration: | ||
terraform: | ||
exclude-downloaded-modules: true | ||
severity: | ||
- HIGH | ||
- CRITICAL | ||
scan: | ||
skip-dirs: | ||
- "**/.terraform/**/*" | ||
EOF | ||
cat ./trivy.yaml | ||
- uses: aquasecurity/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tfsec_args: '--force-all-dirs --exclude-downloaded-modules --minimum-severity HIGH' | ||
working_dir: '' | ||
scan-type: 'config' | ||
hide-progress: false | ||
trivy-config: trivy.yaml |
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