N
Neon2y ago
afraid-scarlet

"Cannot run interactive auth in CI" when creating branch

Hi everyone. I've been lately experiencing some strange behavior with my Github Actions CI/CD pipelines while creating a branch with neondatabase/create-branch-action@v4 Everything is working fine for normal PRs, but when dependabot creates a PR, the pipeline stage fails with this output:
ERROR: Cannot run interactive auth in CI
ERROR: branch creation failed
ERROR: Cannot run interactive auth in CI
ERROR: Cannot run interactive auth in CI
ERROR: branch creation failed
ERROR: Cannot run interactive auth in CI
What's going on here and how can I fix this? Thanks in advance!
3 Replies
correct-apricot
correct-apricot2y ago
My guess is that this is a permission issue. Check GitHub Workflow permissions under the repository settings. The idea is that if someone (or a bot) opens a PR against your repository, they can't just run jobs that access secrets.
correct-apricot
correct-apricot2y ago
This might be helpful.

Did you find this page helpful?