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

I have already configured token, but it prompts: Token required because branch is protected #1738

Open
panbingkun opened this issue Jan 10, 2025 · 6 comments
Assignees
Labels
Area: Report Upload Issues with pre-ingest report uploading Eng Area: Codecov GitHub Action Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months support

Comments

@panbingkun
Copy link

panbingkun commented Jan 10, 2025

Image Image
  • And there are no prints in the environment similar to "token: * * *"
Image
@panbingkun
Copy link
Author

I want to know, what should I do?
thanks!

@panbingkun
Copy link
Author

I have asked the Apache Spark administrator to add secrets.CODECOV_TOKEN configuration in the Spark Repo settings
https://issues.apache.org/jira/browse/INFRA-26413

@panbingkun
Copy link
Author

cc @thomasrockhu-codecov

@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Jan 10, 2025
@thomasrockhu-codecov thomasrockhu-codecov added Area: Report Upload Issues with pre-ingest report uploading Eng Area: Codecov GitHub Action Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months support labels Jan 10, 2025
@panbingkun
Copy link
Author

@thomasrockhu-codecov
Do you mind if I ask what special settings I should use for this? Or did I use it incorrectly?
Thank you very much!

@thomasrockhu-codecov
Copy link
Contributor

@panbingkun sorry for the delay. I took a quick look, but I'm going to need another engineer's help on this. I'll get back to you on Monday.

@thomasrockhu-codecov
Copy link
Contributor

@panbingkun 1 quick thing, since the CI run you linked wasn't from a fork, you could change the Codecov Action to use oidc for token verification.

You would need to add permissions on the CI run and set use_oidc: true when calling the action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Report Upload Issues with pre-ingest report uploading Eng Area: Codecov GitHub Action Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months support
Projects
None yet
Development

No branches or pull requests

2 participants