Skip to content

Support codecov-action@v4 breaking changes #177

@brian-smith-tcril

Description

@brian-smith-tcril

From slack:

Hi team, we noticed that Codecov has stopped working in frontend-app-authn recently. It seems like it can't find the token.
Does anyone have any idea on how to resolve this?

This happened because openedx/frontend-app-authn#1172 was merged which bumped the codecov action from v3 to v4 without accounting for the breaking changes

Tokenless uploading is unsupported

We use the codecov workflow in quite a few places throughout the org https://github.com/search?q=org%3Aopenedx+uses%3A+codecov%2Fcodecov-action&type=code and I expect dependabot PRs to start making it into a bunch of those repos.

If we want to move to the v4 version of the action we should ensure we make the required changes to support it

  • Add a codecov token as an org secret
  • Update workflows from
        - name: Run Code Coverage
          uses: codecov/codecov-action@v4
    to
        - name: Run Code Coverage
          uses: codecov/codecov-action@v4
          with:
            token: ${{ secrets.CODECOV_TOKEN }} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions