← Back to Pull requests

ci(sync-docs): replace PAT with actions/create-github-app-token #226

Closed
unknown closed this pull request without merging on Nov 20, 2026 20:51 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 15:44 UTC
Author

Summary

The docs sync opened its pull request in the website repository with a personal access token (DOCS_WEBSITE_PR_TOKEN). This replaces it with a short-lived installation token of the new GitHub App Dash0 Docs Sync (dash0-docs-sync), minted per run with actions/create-github-app-token.

  • The app is installed only on the documentation repository. The token is restricted to that repository (taken from the existing SYNC_DOCUMENTATION_TARGET_REPOSITORY secret, so the name stays out of git) and to Contents and Pull requests (read and write).

  • The client ID comes from the organization variable DOCS_SYNC_APP_CLIENT_ID, the private key from the organization secret DOCS_SYNC_APP_PRIVATE_KEY. Both are already shared with this repository.

  • Dry runs skip the token step, so they still need no secrets.
  • The same change for the operator: dash0hq/dash0-operator#1757. A test sync from there opened a PR authored by dash0-docs-sync[bot], with CI and the Vercel preview running as before.

    Testing

    After merging, run the sync workflow via workflow_dispatch with dry-run unchecked. The PR in the website repository should be authored by dash0-docs-sync[bot].

    Cleanup after merge

  • Delete the repository secret DOCS_WEBSITE_PR_TOKEN and revoke the personal access token behind it.
  • Diff: 164 lines (+123 / -41) across 2 files Reviewer: mmanciop Review duration: 307m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.58) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 164 lines diff across 2 files
    0.58
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.305
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.058
    Real PR Conversation Timeline
    1 comments
    "Review active on #226"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 58.2% (MEDIUM) · Higher = larger blast radius
    58.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.0% · Safe to merge
    23.0%