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

Failed to parse stylelint diff due to 401 (unauthorized) #62

Open
geebru opened this issue Feb 10, 2022 · 1 comment
Open

Failed to parse stylelint diff due to 401 (unauthorized) #62

geebru opened this issue Feb 10, 2022 · 1 comment

Comments

@geebru
Copy link

geebru commented Feb 10, 2022

We currently run a custom stylelint and eslint setup and I'm looking into a reviewdog replacement to surface errors as PR comments. Github claims that API will come more easily at some point, but until then, plugins I seek.

I have the token all setup (as without the Github token, I expectantly get "no token provided" errors) but once the token is added, and reviewdog-stylelint runs I get this:

Github workflow error showing "reviewdog: post failed for stylelint: fail to parse diff: GET (PR API url): 401 Bad credentials []"

I'm a touch lost here as to what besides the token reviewdog might be hitting authentication problems with. Any help here would be appreciated!

@bert-mccutchen
Copy link
Contributor

This sounds like a GitHub Actions token permissions issue. Here is a link to their documentation for fine-tuning permissions at a per-job level: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Note

By default, the GitHub Actions token provides read-only access.

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

2 participants