Repository navigation
Closed
Labels
pre-existingReview finding classed pre-existing per local-strict-review Disposing of FindingsproseA defect in rule or procedure text
Description
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
- "It preserves and reports
bypass_actorswithout asserting them" attributes a write-path behavior to a read-only command.check_rulesetonly reports the live bypass list. The preserving isapply_ruleset's, which reads the live list and writes it back because a PUT replaces the whole document. - 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 -3orpython3, the script exits 1 before any check runs. - 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
- "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/FooprintsNot catalogedand exits 2.configure.sh's own closing note says this explicitly and the unit does not. - "where the mechanism needs it (Docker Hub, codegen App), the Dependabot store too" is a stale enumeration.
spec/secrets.jsondeclares both stores fornuget-oidcand forcodecovas well, so a repository with tests can get aCODECOV_TOKEN missing from the dependabot storedefect the unit says this check cannot produce. The fix is the category, meaning the mechanisms whosestoreslist includesdependabot, rather than two more names. - "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
<ground>is defined nowhere in the unit or inAUDIT.md. Section 1 namesmainand section 8 names a registrygroundTruthBranchfield, so the snippet cannot be run as given without guessing which.- A repository with no
.github/dependabot.yml, or no.githubdirectory, takes the snippet's|| exit 1in exactly the case the same bullet calls normal, indistinguishably from an auth or network failure, and terminates an interactive shell it was pasted into. - 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 nosetheader, and under the fleet's mandatoryset -Eeuo pipefailthe earlierhas .github/workflows && { ... }aborts the script on a repository with no workflows directory. - 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 printsMISSINGfor every implied ecosystem, rendered identically to a real finding. - The
package-ecosystempattern 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. - "
github-actionswhen.github/workflows/is present" is broader than the mechanical check it claims to describe, which requires at least one.ymlor.yamlentry inside that directory. - "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.ymlis absent, is never stated plainly.
Bullet 4, Dependabot on self-hosted runners
- 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.
- 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.
Metadata
Metadata
Assignees
Labels
pre-existingReview finding classed pre-existing per local-strict-review Disposing of FindingsproseA defect in rule or procedure text
Activity
ptr727 commentedon Sep 14, 2026
A second whole-unit read of the same section, run after the two
introducedfindings above were fixed, raised four more pre-existing defects that are not in the list above.configure.sh applywrites: the declared settings, the derived settings and the registry description, ..." presents the registry description as asserted.check_settingsasserts 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.release|operationalis not bracketed as a placeholder the way<owner>/<repo>is, so the command as printed pipes into a nonexistentoperationalcommand. The script's own usage header writes it as[release|operational].py -3andpython3probe always runs, and with neither present the script exits 1 before any group is checked.ptr727 commentedon Sep 14, 2026
A third whole-unit read, after the round above, confirmed the two sentences that round wrote and raised one more pre-existing defect.
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.Enable Projects and Link Every Fleet Repo to the Fleet Engineering Pr…
Enable Projects and Link Every Fleet Repo to the Fleet Engineering Pr…
Fix the Pre-Existing Defects a Whole-Unit Read of AUDIT.md Section 6 …
Promote the AUDIT.md Section 6 Fixes and the Fence Scanner to Main (#…