[Question] Why use GITHUB_TOKEN as repo_token?
See original GitHub issuehttps://docs.coveralls.io/parallel-build-webhook In the API reference page, the format of API call is like the following
curl -k $COVERALLS_ENDPOINT/webhook?repo_token=$COVERALLS_REPO_TOKEN
-d "payload[build_num]=$BUILD_NUMBER&payload[status]=done"
I don’t understand why in this github-action, we can use GITHUB_TOKEN instead of the REPO_TOKEN in the coveralls.io repository page? Could you explain to us? Thank you.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
Creating a personal access token - GitHub Docs
Personal access token are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line. Personal...
Read more >Authenticate with GitHub using a token - Stack Overflow
Give a name to your access token and check on the first option. Scroll down and click on generate token. Now, when you...
Read more >How to Generate a Personal Access Token in GitHub and use ...
Here's a very quick tutorial on how to generate a GitHub Personal Access Token. It's easy. Once you create GitHub Personal Access Tokens...
Read more >Using Personal Access Tokens with GIT and GitHub - YouTube
A short walk-through of how to use Personal Access Tokens to work with GitHub.Written instructions can be found at ...
Read more >Create a GitHub Personal Access Token example
But fortunately, it's not overly difficult to create and use a GitHub personal access token instead. Just generate the personal access token in ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same question and maybe can clarify what (I think) @changhuixu was asking — why does passing the
GITHUB_TOKEN
provided by GitHub Actions work as theCOVERALLS_REPO_TOKEN
?Based on how I’m reading the API reference this token eventually gets passed as
repo_token
and that should be coming from Coveralls, not GitHub.I was curious about this question so I tested out coveralls API: https://docs.coveralls.io/api-reference
When the
service_name
field is passed asgithub
then coveralls expects therepo_token
field to be a github token so that it can directly call back to github. In fact, in such a case, using a legit coveralls repo token will result in a failure unless theservice_name
field is changed to something else.Here’s an example for how I am using this action for
parallel-finished
in tandem with thepython-coveralls
: https://github.com/praw-dev/prawtools/commit/bb0e00b89a899fb2494cf230c0104746ddaeb098