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

Use explicit codecov token to upload results #199

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Dec 2, 2020

Attempting to fix the following error:

->  Pinging Codecov
https://codecov.io/upload/v4?package=github-action-20201130-cc6d3fe&token=secret&branch=main&commit=27c39e71a07b063cc2c59a3eb72609a722d17510&build=397032896&build_url=http%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOS%2Factions%2Fruns%2F397032896&name=&tag=&slug=microsoft%2FMLOS&service=github-actions&flags=unittests&pr=&job=&cmd_args=Q,f,n,F,Z
HTTP 400

ERROR: Tokenless uploads are only supported for public repositories on GitHub Actions that can be verified through the Actions API.
Please use an upload token if your repository is private and specify it via the -t flag. You can find the token for this repository
at the url below on codecov.io (login required):

Repo token: https://codecov.io/gh/microsoft/MLOS/settings
Documentation: https://docs.codecov.io/docs/about-the-codecov-bash-uploader#section-upload-token

See Also:
https://github.com/microsoft/MLOS/runs/1489105180?check_suite_focus=true

Attempting to fix the following error:

```
->  Pinging Codecov
https://codecov.io/upload/v4?package=github-action-20201130-cc6d3fe&token=secret&branch=main&commit=27c39e71a07b063cc2c59a3eb72609a722d17510&build=397032896&build_url=http%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOS%2Factions%2Fruns%2F397032896&name=&tag=&slug=microsoft%2FMLOS&service=github-actions&flags=unittests&pr=&job=&cmd_args=Q,f,n,F,Z
HTTP 400

ERROR: Tokenless uploads are only supported for public repositories on GitHub Actions that can be verified through the Actions API.
Please use an upload token if your repository is private and specify it via the -t flag. You can find the token for this repository
at the url below on codecov.io (login required):

Repo token: https://codecov.io/gh/microsoft/MLOS/settings
Documentation: https://docs.codecov.io/docs/about-the-codecov-bash-uploader#section-upload-token
```

See Also:
https://github.com/microsoft/MLOS/runs/1489105180?check_suite_focus=true
@bpkroth bpkroth requested a review from amueller December 2, 2020 23:23
@bpkroth
Copy link
Contributor Author

bpkroth commented Dec 3, 2020

This may no longer be necessary. Or at least is perhaps just working around some sort of service issue that the default automagic Github->Codecov authentication mechanism was having yesterday. It seems that Ed's recent PR at least had codecov results uploaded successfully without the need for this one.

Copy link
Contributor

@amueller amueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't seem to hurt :)

@bpkroth bpkroth merged commit 4e3c786 into microsoft:main Dec 3, 2020
@bpkroth bpkroth deleted the add-codecov-token branch December 3, 2020 19:15
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

Successfully merging this pull request may close these issues.

2 participants