[GH-ISSUE #14] Enable "Allow GitHub Actions to create and approve pull requests" for the nightly refresh PR flow #2

Open
opened 2026-10-26 22:22:45 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Kosinkadink on GitHub (Jul 28, 2026).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Standalone-Environments/issues/14

The nightly refresh workflow (after #13) opens its manifest-sync PR with the built-in GITHUB_TOKEN via gh pr create. That call is currently blocked because the repository setting Allow GitHub Actions to create and approve pull requests is disabled (API: can_approve_pull_request_reviews=false). Every scheduled run will fail at the PR-creation step until this is enabled.

What to do:

  1. Repo Settings -> Actions -> General -> Workflow permissions -> check Allow GitHub Actions to create and approve pull requests -> Save.
  2. If the checkbox is greyed out, it is disabled at the Comfy-Org organization level; an org admin must enable the same setting under org Settings -> Actions -> General first, then re-check the repo setting.

Notes:

  • default_workflow_permissions=read does NOT need changing: the workflow declares explicit permissions: contents: write, pull-requests: write, which override the default.
  • R2 publishing is unaffected either way: the manifest is validated and uploaded to R2 in the same run before the PR step, and the desktop reads R2, not the repo. Until fixed, only the main-branch sync PR fails.
  • Fallback if we do not want to grant this to Actions: store a PAT or GitHub App token as a repo secret and use it for the gh pr create step instead of GITHUB_TOKEN.
Originally created by @Kosinkadink on GitHub (Jul 28, 2026). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Standalone-Environments/issues/14 The nightly refresh workflow (after #13) opens its manifest-sync PR with the built-in GITHUB_TOKEN via `gh pr create`. That call is currently blocked because the repository setting **Allow GitHub Actions to create and approve pull requests** is disabled (API: `can_approve_pull_request_reviews=false`). Every scheduled run will fail at the PR-creation step until this is enabled. What to do: 1. Repo Settings -> Actions -> General -> Workflow permissions -> check **Allow GitHub Actions to create and approve pull requests** -> Save. 2. If the checkbox is greyed out, it is disabled at the Comfy-Org organization level; an org admin must enable the same setting under org Settings -> Actions -> General first, then re-check the repo setting. Notes: - `default_workflow_permissions=read` does NOT need changing: the workflow declares explicit `permissions: contents: write, pull-requests: write`, which override the default. - R2 publishing is unaffected either way: the manifest is validated and uploaded to R2 in the same run before the PR step, and the desktop reads R2, not the repo. Until fixed, only the main-branch sync PR fails. - Fallback if we do not want to grant this to Actions: store a PAT or GitHub App token as a repo secret and use it for the `gh pr create` step instead of GITHUB_TOKEN.
Author
Owner

@coderabbitai[bot] commented on GitHub (Jul 28, 2026):

🔗 Related PRs

Comfy-Org/ComfyUI-Standalone-Environments#13 - ci: open a PR from the nightly refresh instead of pushing to protected main [open]


🧪 Issue enrichment is currently in open beta.

You can configure auto-planning by selecting labels in the issue_enrichment configuration.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

💬 Have feedback or questions? Drop into our discord!

<!-- gh-comment-id:5101553454 --> @coderabbitai[bot] commented on GitHub (Jul 28, 2026): <!-- This is an auto-generated issue plan by CodeRabbit --> <details> <summary>🔗 Related PRs</summary> Comfy-Org/ComfyUI-Standalone-Environments#13 - ci: open a PR from the nightly refresh instead of pushing to protected main [open] </details> --- <details> <summary> 🧪 Issue enrichment is currently in open beta.</summary> You can configure auto-planning by selecting labels in the issue_enrichment configuration. To disable automatic issue enrichment, add the following to your `.coderabbit.yaml`: ```yaml issue_enrichment: auto_enrich: enabled: false ``` </details> 💬 Have feedback or questions? Drop into our [discord](https://discord.gg/coderabbit)!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Standalone-Environments#2
No description provided.