Repository navigation
Commit 5302dea
committed
ci(pre-commit): register tests/e2e module in gosec hook; fix sp.tf EOF
Address the Major CR finding on #1376 and the red pre-commit CI job.
- scripts/gosec-hook.sh: add tests/e2e to MODULE_DIRS. It is a standalone
Go module (tests/e2e/go.mod) but the hook only knew providers/* and pkg,
so staged files there were scanned from the repo root as ./tests/e2e,
breaking module/package resolution. Now mirrors the per-module loop in
ci.yml (root, pkg, providers/{aws,azure,gcp}, tests/e2e).
- terraform/environments/azure/ci-cd-permissions/sp.tf: strip the extra
trailing blank line so the file ends with a single newline. The
end-of-file-fixer pre-commit hook runs --all-files in CI and flagged
this pre-existing whitespace on every PR.
The pre-commit gocyclo failure is pre-existing repo-wide debt (four AWS
service-client functions at complexity 11, below golangci's threshold of
15 but above the hook's -over 10). Not touched by this PR; tracked in the
follow-up issue.1 parent 09ef6ab commit 5302dea
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
0 commit comments