Skip to content

docs(tend): record the org-level repo-secret-allowlist false positive - #376

Merged
nedtwigg merged 2 commits into
mainfrom
docs/tend-org-secret-false-positive
Aug 15, 2026
Merged

nedtwigg merged 2 commits into
mainfrom
docs/tend-org-secret-false-positive

Conversation

@nedtwigg

Copy link
Copy Markdown
Member

tend check reports all ten diffplug org-level secrets (BUILDCACHE_*, CHOCO_*, GPG_*, GRADLE_*, NEXUS_*) as available to this repo's workflows. None of them are — every one has visibility: selected, and none of their selected-repositories lists includes diffplug/dormouse:

gh api orgs/diffplug/actions/secrets/NEXUS_USER/repositories --jq '.repositories[].full_name'

The sweep enumerates org secrets without consulting visibility, so no repo-side configuration can clear the FAIL — the secrets are already at the tightest scoping GitHub offers.

This records the ruling in the running-tend skill so the nightly stops reporting it as fresh drift on #339, and warns against the one lever that would silence it: secrets.allowed means "any workflow here can read this token," which is false, and would suppress the check if one of those secrets were ever genuinely shared with this repo.

Filed upstream as max-sixty/tend#993.

Context: this surfaced while completing the environment migration #340 required. repo-secret-allowlist passed before admin:org was granted, then failed permanently once the sweep could see the org — the same ten secrets were equally unreachable in both states.

🤖 Generated with Claude Code

`tend check` reports all ten diffplug org-level secrets as available to
this repo. None are: every one has `visibility: selected` and none of
their selected-repositories lists includes diffplug/dormouse. The sweep
enumerates org secrets without consulting visibility, so no repo-side
configuration can clear the FAIL.

Records the ruling in the running-tend skill so the nightly stops
reporting it as fresh drift on #339, and warns against the one lever
that would silence it — `secrets.allowed` asserts the secrets *are*
readable here, which would suppress the warning if one were ever
genuinely shared with this repo.

Filed upstream as max-sixty/tend#993.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4b49347
Status: ✅  Deploy successful!
Preview URL: https://fb65e47a.mouseterm.pages.dev
Branch Preview URL: https://docs-tend-org-secret-false-p.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The claims check out against what I can reach from CI: secrets.allowed in .config/tend.yaml is exactly the lever described (currently just CHROMATIC_PROJECT_TOKEN), max-sixty/tend#993 is open, and #339 is the drift issue this suppresses re-reporting on. One note on the verification recipe, inline.

Comment thread .claude/skills/running-tend/SKILL.md Resolved
The audience for this file is tend sessions in CI, whose token 403s on
the org secrets endpoint. A session following the recipe couldn't
confirm the ruling and would have reason to re-investigate — the cost
this section exists to prevent.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@nedtwigg

Copy link
Copy Markdown
Member Author

Applied — good catch. The recipe was written for a human with admin:org, but this file's audience is CI sessions whose token 403s on that endpoint, so it would have invited exactly the re-investigation the section exists to prevent. Pushed as 4b49347.

@nedtwigg
nedtwigg merged commit 5bf832a into main Aug 15, 2026
7 checks passed
@nedtwigg
nedtwigg deleted the docs/tend-org-secret-false-positive branch August 15, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants