-
Notifications
You must be signed in to change notification settings - Fork 99
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
Bad credentials error on POST #25
Comments
I have the same issue on GitHub hosted Ubuntu runner. |
I ran into the same issue when trying to use the default token, but what fixed it for me was explicitly specifying the default token like so: |
to clarify @scttl comment. place github-token under with: for the task. This appears to resolve the issue.
|
Still getting a 401 by default (no vars provided) - https://github.com/Wolven531/deno-playground/actions/runs/2297608812 and a 403 when explicitly using That latter of which explicitly says "Resource not accessible by integration". Not sure what to make of that |
Was able to fix this by: a) Using GitHub web UI to generate a new Personal Access Token w/ most scopes/permissions enabled (none of the admin ones) - name: Code Coverage Report
uses: romeovs/[email protected]
with:
lcov-file: ./coverage/lcov.info
github-token: ${{ secrets.CICD_PAT }} GH Settings page - GH Repo Secrets - Successful job - Comment posted - |
I was able to make it work with default # ...
permissions:
contents: read # Required when overriding permissions
pull-requests: write # <== Add this to allow action to modify your PR
# ...
jobs:
# ...
backend:
# ...
steps:
# ...
- uses: romeovs/[email protected]
with:
lcov-file: ./back-end/coverage.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}
|
I do the same to use but still got Error: Resource not accessible by integration |
I can't get the test coverage results to POST back to GitHub. Every time I get a 401 bad credentials error.
GITHUB_TOKEN
I could use some advice on how to continue troubleshooting this.
The text was updated successfully, but these errors were encountered: