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

オープン
#223 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

question

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

  1. Add a DATA_PR_TOKEN secret (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.
  2. 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.
  3. 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時間
マージ済み PR(30日)
53

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/macro のほかの issue

PolicyEngine/macro の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。