Fix tfvalidate and validation errors (#20)

This also removes the broken vuln scans module that never behaved as
expected.
This commit is contained in:
Robert Fairburn authored and GitHub committed 2025-03-27 11:38:26 -05:00
1 parent 9663f36843
commit 01271e17c6
8 files changed
+11 -555

No files matched your search

+6 -3
View File
@@ -25,9 +25,11 @@ permissions:
contents: read
jobs:
list_addons:
listaddons:
name: list terraform addon directories
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
@@ -35,13 +37,14 @@ jobs:
egress-policy: audit
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- id: matrix
run: echo "value=$(find ./ -wholename './addons/*' -maxdepth 2 -mindepth 2 -type d -o -wholename '*example' -type d -mindepth 1 -maxdepth 2 | jq -s -R 'split("\n")[:-1]')
run: echo "value=$(find ./ -type f -name '*.tf' | awk -F/ 'BEGIN { OFS="/" } ; {$NF=""; print }' | sort -u | jq -c -s -R 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT}
tfvalidate:
name: terraform validate
runs-on: ubuntu-latest
needs: listaddons
strategy:
matrix:
terraform_dir: ${{ fromJson(needs.list_addons.outputs.matrix) }}
terraform_dir: ${{ fromJson(needs.listaddons.outputs.matrix) }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0