Skip to content

fix(repos): a field that GitHub leaves out is not drift - #6878

Merged
dan-petty merged 4 commits into
mainfrom
fix/6875-onboard-missing-field-not-drift
Nov 23, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/6875-onboard-missing-field-not-drift

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Rows 2 and 10 of devops repos onboard compare only the top-level keys that the reply of GitHub holds. A key that the reply does not hold is unknown, not a difference. With no other difference, the row is not readable: the reason names the keys, and a person step names the permission and devops repos onboard <repo> --plan --only <row>.

GitHub gives the merge settings only to a token with Contents write, and bypass_actors of a ruleset only to a token with write access to the ruleset. The read token of the nightly drift Job has neither, so it reported row 2 of each repository as pending. No read permission gives these fields, so CONST_GITHUB_APP_READ_TOKEN_PERMISSIONS does not change. Row 3 has no such field.

Closes #6875

Change: openspec/changes/archive/2026-11-23-6875-onboard-missing-field-not-drift/

Rows 2 and 10 of devops repos onboard compare only the top-level keys
that the reply holds. A key that the reply does not hold, such as a
merge setting for a token without Contents write, is unknown: with no
other difference the row is not readable, with a reason and a person
step (#6875).
… and 10

GitHub gives the merge settings and bypass_actors only to a write
permission, so the read token of the drift Job cannot read them (#6875).
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/repos The devops repos commands and worktrees labels Nov 23, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 23, 2026 13:38
@dan-petty
dan-petty merged commit ca2cc95 into main Nov 23, 2026
30 checks passed
@dan-petty
dan-petty deleted the fix/6875-onboard-missing-field-not-drift branch November 23, 2026 13:38
dan-petty-release Bot added a commit that referenced this pull request Nov 23, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.201.2](v0.201.1...v0.201.2)
(2026-11-23)


### Bug Fixes

* **repos:** a field that GitHub leaves out is not drift
([#6878](#6878))
([ca2cc95](ca2cc95))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
@dan-petty

Copy link
Copy Markdown
Owner Author

Hold the merge: the owner decision of 2026-11-23 (#6875) adds Contents write and Administration write to the token of the drift Job, and that change goes into this pull request next. The PR was marked ready on its first head by mistake; the coordinator marks it ready again when the new head passes its checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/repos The devops repos commands and worktrees type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(repos): a missing merge setting is not drift

1 participant