Pull requests created using this action suddenly requires approval for running workflows? #199292
-
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaWorkflow Deployment Discussion DetailsToday, we discovered that PR's that are either modified or created automatically by other workflow runs suddenly requires approvals to run workflows that is triggered by pull requests (at least on opened or synchronize). In the PR we get the following
Clicking the link sends us to Approving workflow runs from forks, but this is not any PR based on a fork, but a branch in the repository. In the workflow itself we also get the possibility to approve, and there I can get a popup that looks like this The step that created the PR that is related to this uses the peter-evans/create-pull-request action like this jobs:
create-pull-request:
runs-on: ubuntu-latest
name: 🔄 Create pull request to main
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
ref: main
- name: Reset merge branch
run: |
git fetch origin ${{ github.ref }}:${{ github.ref }}
git reset --hard ${{ github.ref }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
branch: release-fix-to-main
title: Merge release into main
assignees: ${{ github.actor }}I found the following documentation Triggering a workflow from a workflow which states that this is expected, but (at least last week) we didn't need to do this approval? While the documentation is quite clear, we haven't had this issue before today (and last time we used this functionality was a week ago without any approval like this), so we wonder when this was activated? So, if anyone can shed light on this it would be nice. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
@dozer75 – I ran into this exact same behaviour recently. The key point is that GitHub’s approval rules are based on the actor who triggers the event, not solely on whether the branch lives in the main repository. Even though your PR branch is in the same repo, the automated creation/update is likely performed by the Here’s how to diagnose and fix it: 1. Check who opened the PRLook at the top of the PR page – who is listed as the author? 2. Review your repository’s workflow approval settingsGo to You’ll see two options:
If either of these is enabled, and the PR author is Quick test: Temporarily disable both checkboxes. If the approval banner disappears, you’ve found the cause. 3. Switch to using a Personal Access Token (PAT) with write permissionsInstead of relying on the default Example snippet from your - name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.MY_PAT }} # Use a PAT, not GITHUB_TOKEN
# ... other optionsOnce the PR author is a known, trusted user with write permissions, GitHub will no longer flag the workflow as needing approval. 4. Double‑check if your repository is a forkIf this repository itself is a fork of another upstream repo, then any PR opened from this fork toward the upstream will always be treated as a fork PR – and approval rules will apply by default. In that case, you’ll need to either adjust the fork settings on the upstream repo, or accept that manual approval is required. 5. Immediate workaroundIf you need to unblock the PR right now, go to the “Actions” tab on the PR. You should see a button that says “Approve” – click it (you’ll need write permissions on the repo). The workflow will then run. |
Beta Was this translation helpful? Give feedback.
-
|
This is often caused by a GitHub Actions security policy change, not necessarily by the action itself. A few things to check: Has the repository recently changed its Actions permissions or fork pull request settings? If this behavior started suddenly without any workflow changes, it's likely due to a repository, organization, or GitHub security setting update rather than a problem with the action itself. Can you share which action you're using and whether the PRs are created by a bot, GitHub App, or another workflow? That will help narrow down the cause. |
Beta Was this translation helpful? Give feedback.
-
|
hi, GitHub rolled out a change that now requires workflow approval when a PR is created or updated by github-actions[bot], even for branches within the same repository (not just forks). The documentation update on May 22nd appears to be when this was first flagged internally behind a feature flag, and based on your timeline — working fine on June 10th, broken on June 17th — the enforcement likely reached your organization sometime in that window during a gradual rollout. |
Beta Was this translation helpful? Give feedback.


hi, GitHub rolled out a change that now requires workflow approval when a PR is created or updated by github-actions[bot], even for branches within the same repository (not just forks). The documentation update on May 22nd appears to be when this was first flagged internally behind a feature flag, and based on your timeline — working fine on June 10th, broken on June 17th — the enforcement likely reached your organization sometime in that window during a gradual rollout.
GitHub typically doesn't announce these incremental policy enforcements publicly, which is why there's no clear "activated on X date" notice. To get the exact date for your documentation, your best option is to contact Gi…