Comments (2)
Ah, I see. Thank you for the response! I forgot that GH likes to return 404s instead of 401s, and I was confused because I had earlier had an explicit permissions error (something like this token does not have access to this resource
).
In any case, I worked around it by using the GITHUB_TOKEN
directly and setting up permissions within the action:
permissions:
contents: read
pull-requests: write
I also ended up using @mshick/add-pr-comment since it was a bit more straightforward for my use case.
from create-or-update-comment.
In the backend of GitHub, pull requests are extended issues. They use the same API. So the action is correct to try and find an issue with that number.
If you are consistently getting a 404 from the API then that would probably indicate that the token you are using doesn't have the correct permissions to access the repository contents.
- Check the
COMMENTING_ACCESS_TOKEN
secret actually contains the full PAT and hasn't been accidentally truncated. Copy/paste it again. - Check that the PAT is created on a user that has read and write access to the target repository.
- Check that the PAT has the correct scopes.
repo
for classic tokens.
from create-or-update-comment.
Related Issues (20)
- Error on PRs made by Dependabot HOT 5
- Update comment, replace body HOT 1
- Truncate files which are too long HOT 1
- Unable to update the comment on github discussion room, please help HOT 1
- It don't work HOT 1
- Only works for organizations? HOT 1
- commit comment HOT 1
- Unable to Create the comment HOT 6
- Error Argument list too long with very large comment bodies HOT 2
- How to create comment that from a txt file? HOT 1
- There is an issues related to permission occurred HOT 4
- Dependabot finding HOT 1
- [Feature Request] Is it possible to use Throttling to gracefully handle issues with API limits? HOT 5
- The body-path is set but says it is missing HOT 2
- Change display name / photo for github actions bot commit? HOT 1
- test 123
- Feature Request: Publish to npm HOT 2
- Error: Cannot read properties of undefined (reading 'number') HOT 3
- Error: Missing comment 'body' or 'body-path'. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-or-update-comment.