-
Notifications
You must be signed in to change notification settings - Fork 298
Add FAQ entry for PR creation disabled by organization settings #15676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -235,6 +235,62 @@ Common issues: | |||||||||||||
|
|
||||||||||||||
| If discussions are not enabled or the category lacks announcement capabilities, consider using `fallback-to-issue: true` (the default) to automatically create an issue instead. See [Discussion Creation](/gh-aw/reference/safe-outputs/#discussion-creation-create-discussion) for configuration details. | ||||||||||||||
|
|
||||||||||||||
| ### Why is my create-pull-request workflow failing with "GitHub Actions is not permitted to create or approve pull requests"? | ||||||||||||||
|
|
||||||||||||||
| Some organizations disable pull request creation by GitHub Actions workflows through repository or organization settings. This security policy prevents automation from creating PRs, resulting in the error: **"GitHub Actions is not permitted to create or approve pull requests."** | ||||||||||||||
|
|
||||||||||||||
| **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 | ||||||||||||||
|
|
||||||||||||||
| **Workaround Options:** | ||||||||||||||
|
|
||||||||||||||
| 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)** | ||||||||||||||
|
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)** | |
| 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)** |
There was a problem hiding this comment.
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 Settings → Actions → General) or rewording the heading to reflect both scopes so readers look in the right place.