Repository navigation
Description
Problem or Motivation
The process runner gives the GitHub token of the session to each git child and to each gh child in their environment. Many of these calls need no token: a local git call (git add, git commit, git diff) does not reach a remote. A child also starts programs that its configuration names, and in an implement Job the agent of a step can write some of that configuration. So the token reaches places that do not need it. A private security advisory holds the details; it is published after the fix ships.
Proposed Solution & Architectural Design
- Only a git call that reaches a remote (
push,fetch,pull,ls-remote,clone, and someremotesubcommands) gets the token. - A gh call gets the token from a new private config folder for each call (
GH_CONFIG_DIR, mode 0700, file mode 0600), not from its environment. The folder goes after the call, also after an error or a timeout. - The implement Job runs each network git call in a new bare git folder that reads no global, system or clone configuration and no hook, with an empty home folder and a reset credential helper.
- In a runner, a git setting, attribute driver or alternates file that the Job does not allow stops the item before any network call (a new failure class).
- SECURITY.md states the invariant.
Target Subsystem
Core process runner (src/devops_cli/core/process.py) and the implement Job (src/devops_cli/roadmap/implement/).
Existing Tool Considered
git's and gh's own configuration controls (GIT_CONFIG_GLOBAL, GIT_CONFIG_NOSYSTEM, GH_CONFIG_DIR). No new tool. The two-container Job of #3700 stays the structural follow-up.
Acceptance Criteria
- Tests: a local git call and a gh child get no token in their environment; a network git call of the Job reads no agent-written configuration or hook; the gh config folder is gone after success, error and timeout.
-
uv run devops ci fail-to-pass --base origin/mainshows these tests fail on the base. - After the release, one implement Job pushes its branch.
Activity
dan-petty commentedon Nov 12, 2026
core, and .github/labels.yml declares no scope/core label. Add the label to the file to give the scope to this item.A private security advisory covers this and the token reaches untrusted agent-written configuration.Both limit token exposure in runner Job child processes, but #5058 removes the hooks-read permission from the token while the candidate stops giving the token to processes that do not need it.chore(main): release 0.125.1 (#5300)
devops-cli-service commentedon Nov 13, 2026
Released in v0.125.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.125.1
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 01:10 UTC