audit-code install-tools.sh:
- Buffer the opengrep release JSON before grep -m1; curl died with (23)
under pipefail when grep quit early.
- Use ${m}: in the PowerShell block; $m: parsed as a scope-qualified var.
- On Arch, skip paru/yay when pacman -Q shows every package installed,
since --needed still invokes sudo.
- Add --check-only (fast, installs nothing, non-zero naming missing tools)
and --user-only (no system package managers, no sudo).
log-run.py (both skills): put the skill dir on sys.path so running it as
a script from any cwd no longer raises ModuleNotFoundError.
audit-terraform: move deps from requirements.txt into pyproject
dependency groups and add scripts/install-tools.sh (uv sync --group tools,
then check trivy, tflint, tofu, terragrunt, gh).
Both SKILL.md files gain a 0.5 Preflight step and call scripts through
uv run --project ${SKILL_DIR}. tools_unavailable is now a map of tool to
exact install command; audit-terraform skips trivy when absent and stops
with an install hint instead of crashing when tofu/terragrunt is missing.
27 lines
614 B
TOML
27 lines
614 B
TOML
[project]
|
|
name = "audit-terraform"
|
|
version = "0.1.0"
|
|
description = "Terraform/terragrunt review skill — runs scanners and plans, fans out review agents."
|
|
requires-python = ">=3.11"
|
|
dependencies = []
|
|
|
|
[dependency-groups]
|
|
tools = [
|
|
"python-hcl2>=4.3.0",
|
|
"beautifulsoup4>=4.12.0",
|
|
"requests>=2.31.0",
|
|
]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"scripts/collect-changes.py" = ["E402"]
|
|
"scripts/refresh-controls.py" = ["E402"]
|
|
"scripts/log-run.py" = ["E402"]
|
|
|
|
[tool.pytest.ini_options]
|
|
markers = [
|
|
"integration: end-to-end test requiring external tools (tofu, terragrunt)",
|
|
]
|