Git Product home page Git Product logo

Comments (13)

G-Rath avatar G-Rath commented on August 24, 2024 1

@thomasrockhu-codecov we're getting that over at eslint-plugin-jest - I've been trying a few things to see if I can get it unblocked and/or more information out of it so the latest failings might not be the ones you want (though they are at time of post), but here's a few runs that have the failing:

Note the last couple are using v4.1.1 specifically which is before OIDC support was landed - technically I can't verify this isn't user error as I don't have permissions to set secrets on the repository, but even if it is it seems like a very confusing error message to get if the problem is the codecov token is plain wrong.

(I have tried giving a known bad token and gotten the same error - would be good to get confirmed if that is because the token is bad or that something related to OIDC is done before the token is validated)

from codecov-action.

thomasrockhu-codecov avatar thomasrockhu-codecov commented on August 24, 2024 1

@jsoref will take it with you on this issue

from codecov-action.

jkreileder avatar jkreileder commented on August 24, 2024 1

@ssbarnea Your job is missing the id-token: write permission.

Yes, the codecov.io side has to support this. It was broken but apparently they fixed it and uploading with OIDC works for a few days for me now.

from codecov-action.

thomasrockhu-codecov avatar thomasrockhu-codecov commented on August 24, 2024

@nfx can you provide some more details? Specifically the rest of the logs?

from codecov-action.

jsoref avatar jsoref commented on August 24, 2024

@G-Rath you're missing the permission -- I've added it in check-spelling-sandbox/eslint-plugin-jest@1ccd95e

But even with that it isn't working:
https://github.com/check-spelling-sandbox/eslint-plugin-jest/actions/runs/8944401881/job/24571265618#step:6:32

from codecov-action.

G-Rath avatar G-Rath commented on August 24, 2024

@jsoref we're not trying to use OIDC though so the permission should not be needed

from codecov-action.

thomasrockhu-codecov avatar thomasrockhu-codecov commented on August 24, 2024

@G-Rath ok, we made a change here, would you be able to see if you run into that log again?

from codecov-action.

jsoref avatar jsoref commented on August 24, 2024

@thomasrockhu-codecov, so, I'm forcing OIDC (https://github.com/check-spelling-sandbox/eslint-plugin-jest/blob/0e44095625c00fc931da2120f756788342f4b4f6/.github/workflows/nodejs.yml#L64, https://github.com/check-spelling-sandbox/eslint-plugin-jest/blob/0e44095625c00fc931da2120f756788342f4b4f6/.github/workflows/nodejs.yml#L113) and I've added enough logging (d09da3a) to show that OIDC is being used, but it still fails: https://github.com/check-spelling-sandbox/eslint-plugin-jest/actions/runs/8986717338/job/24683540548

==> Got an OIDC token
==> Got an OIDC token
==> Got an OIDC token
...
==> Uploader SHASUM verified (e70beb7c9e3d894678e7d4d0fcb94e59133212dbda5ca7406b625a0167ce4ca8  codecov)
info - 2024-05-07 14:00:41,045 -- ci service found: github-actions
debug - 2024-05-07 14:00:41,048 -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
debug - 2024-05-07 14:00:41,0[51](https://github.com/check-spelling-sandbox/eslint-plugin-jest/actions/runs/8986717338/job/24683540548#step:6:52) -- versioning system found: <class 'codecov_cli.helpers.versioning_systems.GitVersioningSystem'>
debug - 2024-05-07 14:00:41,054 -- Loading config from /home/runner/work/eslint-plugin-jest/eslint-plugin-jest/.codecov.yml
debug - 2024-05-07 14:00:41,055 -- Starting create commit process --- {"commit_sha": "a07975eaa2b0aeb8af59[53](https://github.com/check-spelling-sandbox/eslint-plugin-jest/actions/runs/8986717338/job/24683540548#step:6:54)8d8f62e91c35d72739", "parent_sha": null, "pr": null, "branch": "my-repo-is-not-a-fork", "slug": "check-spelling-sandbox/eslint-plugin-jest", "token": "e******************", "service": "github", "enterprise_url": null}
info - 2024-05-07 14:00:41,270 -- Process Commit creating complete
debug - 2024-05-07 14:00:41,271 -- Commit creating result --- {"result": "RequestResult(error=RequestError(code='HTTP Error 400', params={}, description='[\"Repository not found\"]'), warnings=[], status_code=400, text='[\"Repository not found\"]')"}
error - 2024-05-07 14:00:41,271 -- Commit creating failed: ["Repository not found"]
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/check-spelling-sandbox/codecov-action/my-repo-is-not-a-fork/dist/codecov' failed with exit code 1

from codecov-action.

thomasrockhu-codecov avatar thomasrockhu-codecov commented on August 24, 2024

@nfx just wanted to circle back and see if a fix we made is working for you now

from codecov-action.

nfx avatar nfx commented on August 24, 2024

@thomasrockhu-codecov will check approx in 1.5 weeks

from codecov-action.

jkreileder avatar jkreileder commented on August 24, 2024

@thomasrockhu-codecov Works for me now

from codecov-action.

ssbarnea avatar ssbarnea commented on August 24, 2024

I find it bit perplexing as OIDC is advertised by this action but seems to to be supported by codecov.io itself.

Codecov: Failed to get OIDC token with url: https://codecov.io./ Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable

Basically, the default upload endpoint seems to not support it?

A search on https://sourcegraph.com/search?q=context:global+lang:yaml+%22use_oidc:+true%22&patternType=keyword&case=yes&sm=0 makes me believe that probably we don't have more than 10 repositories using it.

from codecov-action.

thomasrockhu-codecov avatar thomasrockhu-codecov commented on August 24, 2024

Thanks @jkreileder that does seem to be the issue @ssbarnea

@nfx going to close for now, please feel free to reopen if it's not working for you.

from codecov-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.