Skip to content

fix: require token for pr-base-picking command - #806

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/require-token-for-base-picking
Open

sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/require-token-for-base-picking

Conversation

@sentry

@sentry sentry Bot commented Oct 16, 2026

Copy link
Copy Markdown

What was changed

Switched from get_token_header to get_token_header_or_fail in base_picking_logic (codecov_cli/services/commit/base_picking.py).

Why

Previously, base_picking_logic allowed requests to be sent without an Authorization header when no Codecov token was provided. The Codecov API requires credentials for this endpoint and rejected the request with {"detail":"Invalid token header. No credentials provided."}. Using get_token_header_or_fail performs early client-side validation and surfaces a clear CLI error to the user before making the network request.

Fixes CLI-HV

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.

@sentry

sentry Bot commented Oct 16, 2026

Copy link
Copy Markdown
Author

⚠️ Sentry needs additional GitHub App permissions

The Sentry GitHub App installation for this repository is missing permissions it needs to keep iterating on this pull request to get CI passing.

Review and accept the updated permissions to let Seer continue: https://github.com/organizations/codecov/settings/installations/86101127/permissions/update

This branch has not been deployed

No deployments
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.

0 participants