Repository navigation
feat(gitleaks,lychee): flag stateless App tokens and skip api.github.com in online checks - #915
Conversation
…com in online checks Add a github-app-installation-token rule to the canonical .gitleaks.toml covering ghs_<appid>_<jwt>, and exclude the api.github.com host from the online lychee run in the canonical lychee.toml. Tests cover both. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojYKhHyDni9LuAXBuX
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings. I read the full diff with
|
|
claude-review reviewed No findings on 5296b5c. I read the full diff and the PR context, and checked the changes against both closing issues (#830 and #831).
|
Closes #779 ## Summary Justify verdict (`/overengineering:justify`, attended, inline) on the App-token half of `maintenance-audit-link-check-excludes`: **RETIRE**. With that half gone, the scheduled job only repeats the PR lane's public-visibility check, so the whole workflow is consolidated onto that lane. - **Reason when built:** the private-repo inventory drifted twice by hand ([#212](#212), [#483](#483)). [#497](#497) (2026-08-28) made the inventory generated, added a PR-lane `check` for "an excluded repo went public", and added this scheduled App-token read for "a new private sync target is missing". - **Catches since then:** none. `gh run list --workflow maintenance-audit-link-check-excludes.yml` shows 27 runs from 2026-10-05 to 2026-10-30, all `success`, and no failed run under any path of this workflow. - **The one real gap it was built for was outside its reach.** [#767](#767) (2026-10-11) added agent-automations, architecture and azure-iac. Its own body says this workflow "could not catch it: it reads only the standards-sync App installation, and none of the three is a sync target". A manual online run found the gap as a 404, which is the control that actually catches this drift. [standards#779](#779) cites a 16-clone sweep that found one link into an uninventoried private repository. - **Carry cost:** a daily job that loads the standards-sync App private key (an App that holds contents, pull_requests, issues and workflows write elsewhere) to read repository names, plus a third input mode in `private-repo-inventory.sh` with its tests. A miss costs one false 404 in a non-blocking online run that names the repository, fixed by `private-repo-inventory.sh generate --write`. Options considered: keep (no catch on record, and blind to non-sync repos); simplify to the public half on a schedule (duplicates the PR-lane `check`, which runs on every standards pull request and push to main); retire (this PR). ## Fix - Delete `.github/workflows/maintenance-audit-link-check-excludes.yml`. - `components/lychee/private-repo-inventory.sh`: drop `--installation-list` and the code that only it fed. Drop its two test cases from `private-repo-inventory.test.sh`. - `components/lychee/README.md`, `lychee.toml` (the generated-inventory comment, outside the lines #915 touched), `pr-require-checks.yml`, root `README.md`, `components/code-review-rules/README.md`, and the cron comments of three maintenance workflows now say what covers each direction, or stop naming the workflow. - `vocabulary.json`: the `check-links` purpose no longer names the workflow. The `audit-link-check-excludes` slot stays, because `rename-map.json` still lists it as a rename target and `naming-lint.test.mjs` requires every rename target to pass the vocabulary. - ADR 0007, which mentions the workflow under its old name, is left as written. ## Verification - `bash harness/shell/run-tests.sh components/lychee/private-repo-inventory.test.sh`: passed. `components/lychee/lychee.test.sh`: passed. - `bash components/lychee/private-repo-inventory.sh check --config lychee.toml`: OK. - `npm run lint:github-actions-conventions`: 0 findings. `node --test components/github-actions-conventions/naming-lint.test.mjs`: 14 pass. `lint:concurrency-policy` and `lint:runner-policy`: passed. - `actionlint` on every workflow: clean. `shellcheck` on both scripts: clean. markdownlint on the three READMEs: clean. ## Related - The `STANDARDS_SYNC_APP_*` secrets in the `standards-sync` environment are still used by the sync workflow. Nothing to remove there. - Separate from [#923](#923) (#778 and #780), which edits a different paragraph of `components/lychee/README.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VcupojYKhHyDni9LuAXBuX Co-authored-by: Claude Opus 5.5 <[email protected]>
Closes #830
Closes #831
Summary
Gitleaks' default rules miss GitHub's stateless App installation tokens (
ghs_<appid>_<jwt>), and the online lychee run fails with 403 onapi.github.comREST URLs that docs cite on purpose.Fix
.gitleaks.toml(the root-canonical source perdistribution/sync-manifest.yml): add thegithub-app-installation-tokenrule from gitleaks: add a rule for GitHub stateless App installation tokens (ghs_<appid>_<jwt>) #830,ghs_[A-Za-z0-9._-]{36,}, after[extend] useDefault = true.lychee.toml(also root-canonical; feat(lychee): exclude api.github.com endpoints from the online link check #831 namescomponents/lychee/lychee.toml, which does not exist): add'^https://api\.github\.com/'toexclude.components/gitleaks/README.md: the config now adds one rule, so the sentence saying it adds nothing is updated.components/gitleaks/gitleaks.test.sh(token built from parts at run time, checked detected and redacted in output and report) and anapi.github.comcase incomponents/lychee/lychee.test.shwith a line inExclusions.md.Verification
harness/shell/run-tests.sh components/gitleaks/gitleaks.test.sh: pass.harness/shell/run-tests.sh components/lychee/lychee.test.sh: pass..gitleaks.toml(nogithub-app-installation-tokenfinding) and passes with the rule.markdownlint-cli2on the touched markdown: 0 issues.Related
Found in melodic-software/claude-code-plugins#8855. Once this syncs, claude-code-plugins can drop its repo-local
.lycheeignoreentries for the six URLs.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojYKhHyDni9LuAXBuX