Skip to content

Commit 6ce1c55

Browse files
authored
note auto-merge with merge queue requires token (#61530)
1 parent e34d796 commit 6ce1c55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

content/code-security/tutorials/secure-your-dependencies/automating-dependabot-with-github-actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ jobs:
180180
> [!NOTE]
181181
> If you use status checks to test pull requests, you should enable **Require status checks to pass before merging** for the target branch for {% data variables.product.prodname_dependabot %} pull requests. This branch protection rule ensures that pull requests are not merged unless **all the required status checks pass**. For more information, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule).
182182

183+
If the target branch uses a merge queue, the built-in `GITHUB_TOKEN` cannot add pull requests to the queue. In this case, you must authenticate the workflow with a {% data variables.product.pat_generic %} or a {% data variables.product.prodname_github_app %} token that has permission to merge, and use it in place of `GITHUB_TOKEN` for the `gh pr merge` step.
184+
183185
## {% data variables.product.prodname_dependabot %} and {% data variables.product.prodname_actions %} policies
184186

185187
Normally, whether a workflow can run in a repository depends on {% data variables.product.prodname_actions %} **policy checks** and whether {% data variables.product.prodname_actions %} is **enabled** at the organization or repository level. These controls can restrict workflows from running—especially when external actions are blocked or {% data variables.product.prodname_actions %} is disabled entirely.

0 commit comments

Comments
 (0)