Skip to content

refactor(security): find tools on PATH, not in the installer folder - #6542

Closed
dan-petty wants to merge 1 commit into
mainfrom
refactor/4362-tools-on-path
Closed

dan-petty wants to merge 1 commit into
mainfrom
refactor/4362-tools-on-path

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The review looked for ruff and semgrep in ~/.local/bin before PATH, and devops infra used the pinned install of devops install-tools before the ansible-runner on PATH. So a tool that the devtools image or a package manager put in another folder was missed, or a different copy ran. Now each lookup uses require_binary or check_binary. A missing ruff or semgrep raises DependencyError with the upstream install page. The Ansible environment has no pinned version now, so the onboard row and the plan record hold none, and the dry-run snapshots do not name 2.22.0. New tests put a semgrep only in ~/.local/bin, no ruff on PATH and no ansible-runner on PATH; they failed before the change. devops install-tools stays until #4363.

Closes #4362

Change: openspec/changes/archive/2026-11-20-4362-tools-on-path/

The review finds ruff and semgrep, and infra finds ansible-runner, on
PATH only through devops_cli.core.binaries. A missing tool raises
DependencyError with an upstream install hint. The Ansible environment
loses its pinned version (#4362).
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 20, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Closed with no merge. Owner decision of 2026-11-20 (#4363, comment 7047909430): one pull request for #4363 deletes devops install-tools, the tools lock and every reader, in place of this step. The branch stays for reuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(security): tools are found on PATH and not in tools.lock

1 participant