Skip to content

auto-fix-limit 扫描基础设施故障(非超限) #151

Closed

Description

@randypanding

auto-fix-limit 扫描出现 1 处 API 读失败(运行 2026-08-21T07:18:17Z)——计数/执法可信度受损,须排查(限流/凭据/端点变更)。fail-closed:本次运行按 exit 2 变红。

Activity

  1. randypanding commented on Aug 21, 2026

    @randypanding
    ContributorAuthor

    复验结论(2026-08-21 14:11,GOVERNANCE_TOKEN 轮换后)

    轮换后 dispatch cost-check(注入 100%)复验:仍失败——读取失败(非 404) + 置位失败。同端点用另一 admin token 实测全通(POST 集合端点/PATCH/读取/删除),脚本无问题(set_breaker 的端点勘误注释已在,W1-C5 修过两处叠加错)。

    定位:新 token 仍缺组织级权限。精确缺失项:

    • Fine-grained PAT:Organization permissions → Actions variables → Read and write(读取与写入各需勾选)
    • 若是 classic PAT:需要 admin:org scope(较宽,建议用 fine-grained)

    轮换后自验一条命令(不动真实用量):

    gh workflow run cost-check.yml --repo Cloudbird-Software/.github -f usage_minutes_override=2000 -f quota_minutes_override=2000
    gh api orgs/Cloudbird-Software/actions/variables/AUTO_MERGE_DISABLED   # 期望 "true"(脚本置位值)
    gh api -X DELETE orgs/Cloudbird-Software/actions/variables/AUTO_MERGE_DISABLED   # 复位
    

    复位后下一轮 cost-check(6h cron 或 dispatch)会自动关闭熔断 P0——顺带完成 #93 T2.4 的全自动化闭环。

  2. randypanding commented on Aug 21, 2026

    @randypanding
    ContributorAuthor

    已修复验证(2026-08-21 14:24)

    GOVERNANCE_TOKEN 补组织级权限后复验:OK 熔断标志 AUTO_MERGE_DISABLED=true(本轮附带撤销全部 auto-merge)——读取/消费/执法链路全通(cost-check 真置位=true ✓、auto-fix-limit 读到并执行撤销 ✓、人工复位 ✓)。本告警对应缺陷已消除,关闭。

    残留一项(由 #201 跟踪):billing usage API 403——新 token 还缺组织权限 Administration: read(真实用量读取用;注入测试不受影响)。

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-fix-infraauto-fix-limit 执法标记(勿手工使用)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions