Bot PRs: GitHub Actions can no longer open PRs here (since 26 Oct), and bot pushes never trigger CI; choose a token or re-enable the setting
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions
- 领域
- ci-cd
调研方向
Start with the fetch-vintages.yml workflow and review the changes in #221, which the issue says already handles updating existing PRs and running PR-time gates. The remaining decision is to configure a DATA_PR_TOKEN secret or restore the GitHub Actions permission to create pull requests; confirm with a maintainer which option is available. Done means a new bot PR can be opened and its required CI checks run.
由索引模型根据 Issue 内容生成。
描述
Decision needed
Since 26 Oct 2026 every fetch-vintages.yml run has failed with
##[error]GitHub Actions is not permitted to create or approve pull requests.
(first failing run 40289015018, latest 41988331394). gh api repos/PolicyEngine/macro/actions/permissions/workflow returns {"default_workflow_permissions":"write","can_approve_pull_request_reviews":false}. I can't read the org-level policy (403 with Vahid's token), so I don't know whether the repo toggle was switched off or an org policy changed on 24–25 Oct.
A second, older problem has the same cause: the bot pushes with GITHUB_TOKEN, so GitHub never starts pull_request workflows on its PRs. #195 (head 18442ea) has Vercel checks only and has never been through forecast-archive, data-immutability or site-provenance.
#221 makes the pipeline robust to both. It updates an existing PR without the create permission, and it runs every PR-time gate inside the job. A brand-new bot PR still needs one of the options below. That means the first refresh after #195 merges, and every nowcast round PR.
Options
- Add a
DATA_PR_TOKENsecret (recommended). Use a fine-grained PAT, or better a GitHub App token, scoped to PolicyEngine/macro with Contents and Pull requests read/write. #221 already uses it for checkout, push and PR calls when it is set. Bot pushes then trigger PR-time CI, so bot PRs show real checks. - Re-enable "Allow GitHub Actions to create and approve pull requests" in Settings → Actions → General → Workflow permissions. If the box is greyed out, an org owner has to allow it under the PolicyEngine org Actions settings. This fixes creation only; bot PRs still get no CI runs, so a human has to close and reopen each one to get checks.
- Neither. The job pushes the branch and prints a compare link; a human opens the PR by hand each time.
Recommendation: option 1 (App token if the org has one, otherwise a fine-grained PAT owned by vahid-ahmadi with a 1-year expiry and a calendar reminder).
- 主要语言
- HTML
- 星标
- 3
- 派生
- 1
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 53
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/macro 的其他 Issue
-
HANK incidence overlay omits the model's labour-tax financing可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭question
难度 2/5 1-3 小时 新手友好度 67/100
PolicyEngine/macro#214 · 2 条评论 ·
维护者通常 1 天内回复
-
Hosted score_reform (OBR, default window) has not finished within 10 minutes since the 30 Oct deploy未关闭
难度 4/5 1-2 天 新手友好度 25/100
PolicyEngine/macro#243 · 1 条评论 ·
维护者通常 1 天内回复
-
Referee review of the model pages (6 Nov 2026)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭question
难度 5/5 一周以上 新手友好度 22/100
PolicyEngine/macro#227 · 5 条评论 ·
维护者通常 1 天内回复
-
question
难度 4/5 3-5 天 新手友好度 48/100
PolicyEngine/macro#210 · 2 条评论 ·
维护者通常 1 天内回复
-
UK SVAR adapter publishes log-difference YoY as if it were the simple rate可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 4/5 3-5 天 新手友好度 45/100
PolicyEngine/macro#208 · 2 条评论 ·
维护者通常 1 天内回复
查看 PolicyEngine/macro 的全部 Issue
相似的 Issue
-
documentation
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
cdklabs/cdk-nextjs#365 ·
维护者通常 1 天内回复
-
alpine build process
难度 2/5 1-3 小时 新手友好度 67/100
nodejs/docker-node#2707 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
manjaro-sway/manjaro-sway#1079 ·
维护者通常 1 天内回复