Skip to content

Check Whether a Read-Only Project Scope Satisfies configure.sh check #1600

Closed

Description

@ptr727

repo-config/configure.sh's project helpers tell an operator whose token cannot read the fleet project link to run gh auth refresh -s project. That scope carries write access to projects, and the check mode only reads: project_node_id and repo_projects issue two GraphQL queries and no mutation. GitHub documents a narrower read-only scope, so a check-only audit token may not need the write-capable one.

What is unverified is whether the narrower scope actually satisfies both queries, which cannot be settled by reading: it needs a token carrying only the narrower scope, run against repo-config/configure.sh check <owner>/<repo>. The message was left naming the scope that is verified to work rather than one that reads plausible, per the fleet's rule against asserting behavior that was not run.

If the narrower scope does satisfy both queries, the fix is in two places that must stay in agreement: the two helper error messages in repo-config/configure.sh, which are shared by apply (which does mutate and does need the write scope) and check, and the sentence in AUDIT.md section 6 that currently says the command's own error names the scope to grant.

Raised by a carried-content review pass on the branch for #1597.

Activity

  1. added
    pre-existing
    script
    on Sep 14, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    pre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions