Skip to content

Fix the Pre-Existing Defects a Whole-Unit Read of AUDIT.md Section 6 Found #1599

Closed

Description

@ptr727

A carried-content review pass over AUDIT.md section 6, "Validate Settings, Rulesets, and Secrets", run while #1597 added the fleet project link to that bullet, raised 15 findings that predate that change. They are filed here as one issue because they are one unit's worth of defects and are worked as one bundle. Two findings from the same pass were classed introduced and fixed in the #1597 branch, and they are not listed here.

The pass read the unit whole, as a repository carrying it for the first time reads it, and checked each claim against repo-config/configure.sh, spec/audit.py, and spec/secrets.json.

Bullet 1, configure.sh check

  1. "It preserves and reports bypass_actors without asserting them" attributes a write-path behavior to a read-only command. check_ruleset only reports the live bypass list. The preserving is apply_ruleset's, which reads the live list and writes it back because a PUT replaces the whole document.
  2. The bullet states no prerequisite beyond the checkout, and a missing one surfaces as a false drift finding rather than as an error. Without admin on the target, the ruleset reads fail and the rulesets read as missing, even though the script's own header says both modes need admin. With the registry present and no runnable py -3 or python3, the script exits 1 before any check runs.
  3. The bolded group list under-states the bullet's own body, which also names the registry description and the two Dependabot security features.

Bullet 2, Secrets

  1. "run spec/audit.py [repo]" takes the registry entry name, not the <owner>/<repo> form the bullet above it tells the reader to use. spec/audit.py ptr727/Foo prints Not cataloged and exits 2. configure.sh's own closing note says this explicitly and the unit does not.
  2. "where the mechanism needs it (Docker Hub, codegen App), the Dependabot store too" is a stale enumeration. spec/secrets.json declares both stores for nuget-oidc and for codecov as well, so a repository with tests can get a CODECOV_TOKEN missing from the dependabot store defect the unit says this check cannot produce. The fix is the category, meaning the mechanisms whose stores list includes dependabot, rather than two more names.
  3. "confirming each required name exists" describes only one of the three verdicts the section produces. The runner also reports a forbidden name present in either store, and a configured name no applicable mechanism claims.

Bullet 3, Dependabot ecosystem coverage

  1. <ground> is defined nowhere in the unit or in AUDIT.md. Section 1 names main and section 8 names a registry groundTruthBranch field, so the snippet cannot be run as given without guessing which.
  2. A repository with no .github/dependabot.yml, or no .github directory, takes the snippet's || exit 1 in exactly the case the same bullet calls normal, indistinguishably from an auth or network failure, and terminates an interactive shell it was pasted into.
  3. The has .devcontainer && { ... } last statement leaves the snippet exiting non-zero whenever the repository carries no .devcontainer, so a caller gating on exit status reads "not applicable" as "the check failed". The snippet also carries no set header, and under the fleet's mandatory set -Eeuo pipefail the earlier has .github/workflows && { ... } aborts the script on a repository with no workflows directory.
  4. Nothing tests that the contents read produced content. gh api --jq '.content' exits 0 with empty output when the key is absent or empty, which prints MISSING for every implied ecosystem, rendered identically to a real finding.
  5. The package-ecosystem pattern admits only a double quote, so - package-ecosystem: 'github-actions' reads as missing. The mechanical check the bullet defers to accepts either quote, so the two disagree on the same file.
  6. "github-actions when .github/workflows/ is present" is broader than the mechanical check it claims to describe, which requires at least one .yml or .yaml entry inside that directory.
  7. "the file exists, so its absence would instead be a file-presence letter" binds "its" to the wrong noun on a first reading, and the operative fact it is reaching for, that the runner skips this check entirely when dependabot.yml is absent, is never stated plainly.

Bullet 4, Dependabot on self-hosted runners

  1. The bullet states the cancelled-with-zero-steps pattern as sufficient for the diagnosis and then states three sentences later that it is not an explicit cause, so a reader cannot tell whether the pattern closes the question.
  2. That bullet gives no command, API path, or query for enumerating those runs or their step counts, where every other check in the section carries its invocation, and it follows "Remediation is a separate, manual action" with two remediation instructions in a file whose header says the audit never edits the target repository. Its worked example is also about the hub rather than about the audited repository, so the visibility check a reader actually needs, that only a private repository can show the symptom, is never given as an instruction.

Activity

  1. added
    pre-existing
    prose
    on Sep 14, 2026
  2. ptr727 commented on Sep 14, 2026

    @ptr727
    OwnerAuthor

    A second whole-unit read of the same section, run after the two introduced findings above were fixed, raised four more pre-existing defects that are not in the list above.

    1. "The command checks what configure.sh apply writes: the declared settings, the derived settings and the registry description, ..." presents the registry description as asserted. check_settings asserts it only when a description resolves, and otherwise prints an unasserted note telling the operator to verify it by hand, which is the common case for a repository that has not adopted the field.
    2. release|operational is not bracketed as a placeholder the way <owner>/<repo> is, so the command as printed pipes into a nonexistent operational command. The script's own usage header writes it as [release|operational].
    3. The run needs a Python interpreter and the unit never says so. The instruction puts the operator in a hub checkout, where the registry always exists, so the py -3 and python3 probe always runs, and with neither present the script exits 1 before any group is checked.
    4. The section heading names three of the six subjects the section governs. Labels, the fleet project link, the deployment environments, and the two Dependabot bullets are not discoverable from it.
  3. ptr727 commented on Sep 14, 2026

    @ptr727
    OwnerAuthor

    A third whole-unit read, after the round above, confirmed the two sentences that round wrote and raised one more pre-existing defect.

    1. "The account-wide toggle at https://github.com/settings/security_analysis" is a personal-account settings page. This file is carried by repositories whose owner may be an organization, where the equivalent setting lives under the organization's own settings, so the instruction to confirm the toggle has no page to visit as written and the unit names no condition under which the URL applies.
  4. added a commit that references this issue on Sep 15, 2026
    b2f8b7b
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-existingprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions