GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] `use_oidc: true` breaks uploads from forks since v5.4.1 · Issue #1821 · codecov/codecov-action

[BUG] use_oidc: true breaks uploads from forks since v5.4.1 #1821

New issue
Copy link
New issue
Copy link
Closed
Closed
[BUG] use_oidc: true breaks uploads from forks since v5.4.1#1821
Copy link
Labels
bugSomething isn't workingcodecov/codecov-action

Description

@lkubb
lkubb
opened on May 4, 2025
Issue body actions

Describe the bug
Previously, when setting use_oidc: true, the action intelligently decided whether to actually request an OIDC token or not (if it detected it was running on a fork). With v5.4.1+, the input has to be set dynamically by the caller to avoid a hard crash.

To Reproduce

  • Have a repository that uploads coverage reports using v5.4.1 or v5.4.2 of this action using OIDC tokens and that is configured via use_oidc: true
  • Create a PR from a fork
  • Find that Get OIDC token always runs, which results in an error:
==> Fork detected
[...]
Run actions/github-script@v7
[...]
 Error: Unhandled error: Error: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable

Expected behavior
Detects it's running on a fork, skips token request. Works.

Regression
This worked in v5.4.0, regression occurred in 5.4.1 (#1807).

Screenshots

Product Area
codecov-action

Versions

  • OS: ubuntu@v24, macos arm64, windows
  • Git Host: GitHub
  • CI/CD: GitHub Actions
  • Uploader: [email protected]

Commit and CI link
https://github.com/salt-extensions/saltext-vault/actions/runs/14823408227/job/41613462624?pr=125

Additional context
Side note: I would expect fail_ci_if_error: false to apply in cases like this as well, yet CI reports failure.

Workaround: use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}

Problematic line:

codecov-action/action.yml

Line 206 in ad3126e

if: ${{ inputs.use_oidc == 'true' }}

Activity

  1. lkubb
    added
    bugSomething isn't working
    on May 4, 2025
  2. ghost added
    codecov/codecov-action
    on May 4, 2025
  3. thomasrockhu-codecov commented on May 11, 2025

    @thomasrockhu-codecov
    thomasrockhu-codecov
    on May 11, 2025 – with Linear
    Contributor
    More actions

    Thanks @lkubb, this should be resolved in #1823

    Reacted by jeanluc
  4. thomasrockhu-codecov commented on May 15, 2025

    @thomasrockhu-codecov
    thomasrockhu-codecov
    on May 15, 2025
    Contributor
    More actions

    @lkubb I released this in 5.4.3

    Reacted by jeanluc
  5. thomasrockhu-codecov
    closed this as completedon May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodecov/codecov-action

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.