Skip to content

Codecov upload is attempted if CODECOV_TOKEN is set, regardless of whether --codecov is provided #2

@adamcunnington-gdt

Description

@adamcunnington-gdt

@Daverball I've ran into an irritating bug.

If the environment variable, CODECOV_TOKEN is set, even to an empty string, this package will cause upload to ALWAYS be attempted (resulting in failure when the token is not set).

My expectation is that this should only happen if I explicitly pass --codecov (or maybe --codecov-token) as a CLI option. I do not expect the upload to be attempted if I don't pass this.

Right now, the only way I can avoid upload is by explicitly unsetting the environment variable (even setting to empty string is not enough)!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions