question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Why use GITHUB_TOKEN as repo_token?

See original GitHub issue

https://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:open
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

5reactions
rdmurphycommented, Dec 2, 2019

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 the COVERALLS_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.

3reactions
bboecommented, Jan 5, 2020

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 as github then coveralls expects the repo_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 the service_name field is changed to something else.

Here’s an example for how I am using this action for parallel-finished in tandem with the python-coveralls: https://github.com/praw-dev/prawtools/commit/bb0e00b89a899fb2494cf230c0104746ddaeb098

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found