Skip to content

Add FAQ entry for PR creation disabled by organization settings#15676

Merged
pelikhan merged 2 commits intomainfrom
copilot/add-faq-entry-repo-settings
Feb 14, 2026
Merged

Add FAQ entry for PR creation disabled by organization settings#15676
pelikhan merged 2 commits intomainfrom
copilot/add-faq-entry-repo-settings

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Organizations can disable PR creation by GitHub Actions via "Allow GitHub Actions to create and approve pull requests" setting, causing workflows to fail with permission errors. Added FAQ entry documenting three workaround strategies.

Changes

  • New FAQ entry in Configuration & Setup section addressing "GitHub Actions is not permitted to create or approve pull requests" error
  • Organization setting navigation for users to verify their configuration
  • Three workaround options:
    1. Default automatic fallback (requires issues: write)
    2. Direct create-issue with Copilot assignment
    3. Disabled fallback (PR-only, fails gracefully)

Example Workaround

For organizations with PR restrictions, assign issues to Copilot for automated processing:

safe-outputs:
  create-issue:
    assignees: [copilot]              # Assign to Copilot for PR creation
    labels: [automation, enhancement]

Cross-references

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /opt/hostedtoolcache/node/24.13.0/x64/bin/node node /home/REDACTED/work/gh-aw/gh-aw/docs/node_modules/.bin/astro build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Add entry in the FAQ about the repository setting that disable PR creation by actions.

Explain how to disable or specify using create-issue + assign to copilot as work around.

See example here in safe outputs

Reference: https://github.com/copilot-community-sdk/copilot-sdk-clojure/actions/runs/22013946090/job/63612760306#step:8:1

Custom agent used: technical-doc-writer
AI technical documentation writer for GitHub Actions library using GitHub Docs voice


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add FAQ entry about disabling PR creation by actions Add FAQ entry for PR creation disabled by organization settings Feb 14, 2026
Copilot AI requested a review from pelikhan February 14, 2026 13:42
@pelikhan pelikhan marked this pull request as ready for review February 14, 2026 13:51
Copilot AI review requested due to automatic review settings February 14, 2026 13:51
@pelikhan pelikhan merged commit 0b36d59 into main Feb 14, 2026
@pelikhan pelikhan deleted the copilot/add-faq-entry-repo-settings branch February 14, 2026 13:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new FAQ entry documenting why create-pull-request can fail when an organization/repository disables PR creation by GitHub Actions, and outlines configuration workarounds to keep workflows usable in restricted environments.

Changes:

  • Adds an FAQ section explaining the "GitHub Actions is not permitted to create or approve pull requests" failure mode.
  • Documents where to find the relevant GitHub Actions “Workflow permissions” setting.
  • Describes three workaround strategies: default issue fallback, direct create-issue + Copilot assignment, and disabling fallback.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +249 to +251
If you cannot enable PR creation or prefer to keep it disabled for security reasons, you have two alternatives:

**Option 1: Use create-issue with automatic fallback (default)**
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intro sentence says "you have two alternatives", but three options are listed below. Also, Option 1 is labeled "Use create-issue with automatic fallback" while the example/config shown is create-pull-request with fallback-as-issue behavior—this heading should match the safe output being configured.

Suggested change
If you cannot enable PR creation or prefer to keep it disabled for security reasons, you have two alternatives:
**Option 1: Use create-issue with automatic fallback (default)**
If you cannot enable PR creation or prefer to keep it disabled for security reasons, you have the following alternatives:
**Option 1: Use create-pull-request with automatic fallback (default)**

Copilot uses AI. Check for mistakes.
Comment on lines +242 to +245
**Organization Setting Location:**
- Navigate to your organization's **Settings** → **Actions** → **General**
- Look for **"Workflow permissions"** section
- Check if **"Allow GitHub Actions to create and approve pull requests"** is disabled
Copy link

Copilot AI Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section mentions the setting can be disabled via repository or organization settings, but the navigation that follows only references organization settings. Consider including the repository-level path (repo SettingsActionsGeneral) or rewording the heading to reflect both scopes so readers look in the right place.

Suggested change
**Organization Setting Location:**
- Navigate to your organization's **Settings** → **Actions** → **General**
- Look for **"Workflow permissions"** section
- Check if **"Allow GitHub Actions to create and approve pull requests"** is disabled
**Where to change this setting (organization or repository):**
- At the organization level: Navigate to your organization's **Settings** → **Actions** → **General**
- Look for the **"Workflow permissions"** section
- Check if **"Allow GitHub Actions to create and approve pull requests"** is disabled
- At the repository level: Navigate to the repository's **Settings** → **Actions** → **General**, then check the **"Workflow permissions"** section for **"Allow GitHub Actions to create and approve pull requests"**

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants