CI blocks after a commit is pushed by github workflow #50468
-
Select Topic AreaQuestion BodyI have a workflow that is updating the dependencies of a go project, when a push to a local branch happens, and pushes these changes to the same branch. However, if it happens that these automatic pushes are made to the branch with an opened PR, the CI blocks in the PR with I was wondering if anyone knows the reason for that. This is the workflow that is pushing some changes with updated dependencies to the local branch, and this: is how CI looks after an auto-commit is made |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The problem is that the push is done using the |
Beta Was this translation helpful? Give feedback.
The problem is that the push is done using the
GITHUB_TOKEN
, which won't create new workflow runs, so the required checks never happen for the automatically created commit. If you want the push to create new workflow runs, you need to use a PAT instead to authorized the push (generally the best way to do it is to pass it toactions/checkout
using itstoken
parameter).