-
Notifications
You must be signed in to change notification settings - Fork 216
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
fix: update tokenless branch logic #1650
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7ff8c66
fix: update tokenless branch logic
thomasrockhu-codecov 453bbab
fix: use the github context
thomasrockhu-codecov 7bee4bb
fix: use double quotes
thomasrockhu-codecov 23d74e4
fix: lots of quotes
thomasrockhu-codecov 7458bec
fix: ai fixes
thomasrockhu-codecov 66a562f
fix: just shove it in
thomasrockhu-codecov 41afb5f
fix: more ai fixes
thomasrockhu-codecov 5873b3f
fix: missing double quote
thomasrockhu-codecov 9301ab0
fix: more clenaup
thomasrockhu-codecov 32a6129
fix: add CC_BRANCH setting for not forks
thomasrockhu-codecov 7cb957d
fix: cleanup
thomasrockhu-codecov 50e2f8a
fix: more cleanup
thomasrockhu-codecov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greetings.
I am not sure where did
full_name
come from. This event variable does not exist in the documentation, and it is also not outputting anything when I am testing it in my repositories (not forks).And due to that fact, the following check here:
if [ -z "$CC_BRANCH" ] && [ -z "$CODECOV_TOKEN" ] && [ "${GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME}" != "$GITHUB_REPOSITORY"
is always false when I am upgrading to
codecov-action
v5, which leads to some side effects with the token check.So, unless I am missing something, I think it is a bug.
Best,
Rust
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amureki there was a slight bug, but that has been fixed in
5.0.3
. As for why is it empty, it seems that this variable when not from a fork will be empty, thus the issue you were seeing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, got it @thomasrockhu-codecov
Thank you for the explanation and resolving the issue!