Skip to content
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

Pronto GH action does not work for bot PRs #406

Open
Lersoo opened this issue Mar 26, 2021 · 3 comments
Open

Pronto GH action does not work for bot PRs #406

Lersoo opened this issue Mar 26, 2021 · 3 comments

Comments

@Lersoo
Copy link

Lersoo commented Mar 26, 2021

Hi ! 👋🏻

First of all, thank you for this amazing tool.

We have integrated it in our workflow using a Github Action to lint our RoR codebase following the wiki. However this action fails systematically for PRs opened by bots, for example dependabot.

We have found a workaround to avoid running this action whenever that is the case :

if: ${{ !contains(github.actor, '[bot]') }}

This could potentially be useful to anyone wanting to integrate Pronto in a GH action. WDYT about adding this to the wiki ? I'd be happy to do it !

@pbstriker38
Copy link
Contributor

We also have this issue. It requires us to restart the workflow which then passes. This is quite annoying since we require linting to pass before merging and this uses up 2 workflow runs to get it to pass.

@pbstriker38
Copy link
Contributor

Here is the error

403 - Resource not accessible by integration // See: https://docs.github.com/rest/reference/repos#create-a-commit-status (Octokit::Forbidden)

And it looks like this is the reason why:
https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/

@reckerswartz
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants