Skip to content

Commit

Permalink
fix: check if not token for tokenless
Browse files Browse the repository at this point in the history
Signed-off-by: joseph-sentry <[email protected]>
  • Loading branch information
joseph-sentry committed Jul 15, 2024
1 parent 58d8dca commit b0dd421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codecov_cli/services/commit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def send_commit_data(
):
# this is how the CLI receives the username of the user to whom the fork belongs
# to and the branch name from the action
if branch and ":" in branch:
if not token and branch and ":" in branch:
headers = None # type: ignore
logger.info("The PR is happening in a forked repo. Using tokenless upload.")
else:
Expand Down

0 comments on commit b0dd421

Please sign in to comment.