codecov / codecov/codecov-action

[BUG] CLI version defaults to latest

Open
#1,889 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
1.7k
Forks
260
Avg merge
1d 7h
Merged PRs (30d)
1

Description

Describe the bug

👋🏾 Howdy! This is partially a feature request but I didn't find a specific template for that. CLI version isn't pinned and defaults to latest, increasing supply chain attack surface and risk of unexpected breaking changes.
We discovered this while troubleshooting code coverage upload failures, the underlying issue appears to have started with CLI 11.2.4 release, and there's an open ticket tracking it: https://github.com/getsentry/prevent-cli/issues/101.

To Reproduce
Steps to reproduce the behavior:

  1. Pin codecov-action version without setting the version: input, e.g. uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
  2. Monitor the CLI version used

Expected behavior
CLI version is only updated when a new codecov/codecov-action version is released.

Versions

  • OS: ubuntu-24.04
  • Git Host: GitHub
  • CI/CD: GitHub Actions
  • Uploader: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1

Commit and CI link
https://github.com/bitwarden/ios/actions/runs/18889125845/job/53913800720

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pinned codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 workflow entry and the linked prevent-cli issue 101 to trace how the CLI version is selected when the version input is omitted. Done means the CLI version remains fixed for a pinned action and changes only when a new codecov-action version is released.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.