Skip to content

run-claude-cli: add an input that keeps user and project settings from loading #992

Closed as not planned

Description

@kyle-sexton

No related PR yet.

Problem

run-claude-cli (action.yml at b8bdd7f) has no input for --setting-sources, and lane.cjs builds its CLI flags without one. A lane that runs pull request code under the CLI, such as claude-code-plugins' pr-verify-capture.yml (melodic-software/claude-code-plugins#12232, PR melodic-software/claude-code-plugins#13536), lets head code write ~/.claude/settings.json or ./.claude/settings*.json mid-session. Managed settings outrank those files, and the capture now pins env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB and env.NODE_TLS_REJECT_UNAUTHORIZED there. Any setting the managed object does not pin still loads from head-written files.

Done when

  • run-claude-cli takes an optional input that passes --setting-sources with user and project removed, with a test of the built argv.
  • The README states which lanes should set it: any lane that runs pull request code.

Found by a security review of PR melodic-software/claude-code-plugins#13536 (finding P3, low confidence; mid-session reload is documented, its effect on env was not probed).

Activity

  1. added
    needs-triage
    on Nov 5, 2026
  2. kyle-sexton commented on Nov 8, 2026

    @kyle-sexton
    MemberAuthor

    Already covered on main. run-claude-cli passes --restricted on every leg (.github/actions/run-claude-cli/lane.cjs:427, since #781 / 725760b), and the CLI reference says --restricted 'loads only managed settings and --settings' (https://code.claude.com/docs/en/cli-reference). So user and project settings files, head-written or not, do not load, and a --setting-sources input would add nothing; lane.test.cjs:783's absence assertion stays, with a comment added in #1017 saying why. UNVERIFIED: whether the mid-session settings watcher honours --restricted when head code writes ~/.claude/settings.json during a run (the original finding's low-confidence P3). If a probe ever shows a reload, reopen this.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions