Repository navigation
feat(repos): report the drift of onboarded repositories nightly - #6816
Merged
Merged
Conversation
Owner
Author
Person steps
No Secret change is necessary: the pod reads the existing key Expected first resultThe runner image has no Review points for the owner
|
The change 6783-repos-onboard-drift-job plans CronJob repos-drift, which runs devops repos onboard --all --plan with a read-only App token, the gauge devops_cli_repos_drift_rows and the rule group repos-drift.
devops repos onboard --all --plan sets the gauge devops_cli_repos_drift_rows of each repository of service.repos, with one series for the rows off the baseline and one for the rows that the check could not read, and prints the state of each repository.
GitHub refuses GET /user to an installation token, and token_scopes raised on the 403 before row 0, so a run as the App stopped. The App now sends no request and row 0 notes that the token reports no OAuth scopes.
…ons only The setting service.github_app.read_only (DEVOPS_CLI_SERVICE_GITHUB_APP_READ_ONLY) makes the token request of the App ask for CONST_GITHUB_APP_READ_TOKEN_PERMISSIONS only. The ConfigMap does not carry the setting.
CronJob repos-drift runs devops repos onboard --all --plan each night with a read-only App token. The rule group repos-drift warns on a repository off its baseline, on a row that the check could not read, and on a check that stops.
…ns in the pinned lists and the docs The pinned variable lists of the config tests name DEVOPS_CLI_SERVICE_GITHUB_APP_READ_ONLY. docs/CLUSTER.md names the Environments read and Secrets read permissions that the drift Job's token asks for, and the full egress of the default perimeter. ADR 0015 records the third, read-only token set.
dan-petty
force-pushed
the
feat/6783-repos-onboard-drift-job
branch
from
November 23, 2026 00:38
daab00a to
566bf81
Compare
dan-petty
marked this pull request as ready for review
November 23, 2026 00:45
This was referenced Nov 23, 2026
dan-petty
pushed a commit
that referenced
this pull request
Nov 23, 2026
🤖 I have created a release *beep* *boop* --- ## [0.197.0](v0.196.0...v0.197.0) (2026-11-23) ### Features * **repos:** report the drift of onboarded repositories nightly ([#6816](#6816)) ([7432f0f](7432f0f)) * **roadmap:** Add toolsets for implement and review ([#6810](#6810)) ([ec5b16b](ec5b16b)) ### Bug Fixes * **deps:** update container images ([#6817](#6817)) ([fb349e5](fb349e5)) * **k8s:** start SearXNG when its metrics Secret is missing ([#6811](#6811)) ([a11d112](a11d112)) --- 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>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CronJob
repos-driftrunsdevops repos onboard --all --planeach night in the runner image (ADR 0035). Its pod acts as the Service App, and the new settingservice.github_app.read_onlymakes each token ask forCONST_GITHUB_APP_READ_TOKEN_PERMISSIONSonly. The ConfigMap does not carry the setting.Row 0 sends no
GET /userfor the App: GitHub refuses that request to an installation token, and the error stopped the run.--all --plansets the gaugedevops_cli_repos_drift_rowsof each repository:state="drift"counts the rows off the baseline andstate="not_readable"the rows that the check could not read. The command prints one state line for each repository. The rule grouprepos-driftwarns on drift, on a not readable row and on a check that stops. A not readable row is its own state.Closes #6783
Change:
openspec/changes/archive/2026-11-23-6783-repos-onboard-drift-job/