Skip to content

fix(ci): push nightly telemetry via scoped fleet-bot app token#6

Closed
IgnazioDS wants to merge 1 commit into
mainfrom
fix/nightly-app-token-push
Closed

fix(ci): push nightly telemetry via scoped fleet-bot app token#6
IgnazioDS wants to merge 1 commit into
mainfrom
fix/nightly-app-token-push

Conversation

@IgnazioDS

Copy link
Copy Markdown
Owner

Why

The nightly job has failed every run for ~18 nights. Root cause is not the job logic — the scan/scoring/benchmark runs fine — it is the final git push to main:

remote: error: GH013: Repository rule violations found for refs/heads/main

The main protection ruleset requires a PR (code-owner review + last-push approval), and the default GITHUB_TOKEN cannot push to a ruleset-protected branch. Because uptime_pct_30d is derived from committed run history, no new dated records have landed since 2026-05-28, so the trailing-30d window has been decaying uptime toward zero.

Fix

Mint a short-lived token from a scoped GitHub App (fleet-bot) that is on the ruleset bypass list, and push the nightly telemetry diff with that token. Humans still need PRs — only this app can write the auto-generated telemetry. The "auditable git diff on main → Vercel redeploy" design is unchanged.

Required before this goes green (account action)

Add two repo secrets (see fleet handoff for the one-time App setup):

  • FLEET_BOT_APP_ID
  • FLEET_BOT_PRIVATE_KEY

…and add the App to this repo's main protection ruleset Bypass list. Once present, workflow_dispatch this job to verify the push succeeds; uptime rebuilds over the following 30 days.

Risk

Low — workflow-only change. No app/library code touched. Reversible by reverting this commit.

The default GITHUB_TOKEN cannot push to the ruleset-protected default
branch, so this job has failed every run for ~18 nights and the
committed-history-derived uptime_pct_30d has decayed toward zero. Mint a
short-lived token from a scoped GitHub App (fleet-bot) that sits on the
'main protection' ruleset bypass list, and push with that. Human PRs are
still required for everyone else.

Requires repo secrets: FLEET_BOT_APP_ID, FLEET_BOT_PRIVATE_KEY.
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evalops-workbench Ready Ready Preview, Comment Jun 16, 2026 3:53am

@IgnazioDS

Copy link
Copy Markdown
Owner Author

Superseded by the autonomous telemetry-data-branch approach (no GitHub App secret needed).

@IgnazioDS IgnazioDS closed this Jun 16, 2026
@IgnazioDS IgnazioDS deleted the fix/nightly-app-token-push branch June 16, 2026 14:15
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.

1 participant