-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: OIDC auth and tokenless #1461
Comments
I keep seeing the same more and more often. When OIDC was introduced we were not told that it does not work as real token replacement and that is affected by api limitations of the tokenless option. https://github.com/ansible/vscode-ansible/actions/runs/9454363931/job/26041754863?pr=1348 @thomasrockhu-codecov If you can take a look, we will really appreciate. |
Here's a more recent example of the same issue if needed: https://github.com/ansible/molecule/actions/runs/9465727251/job/26076225688?pr=4222#step:9:48 |
@ssbarnea @cidrblock would you mind trying |
@thomasrockhu-codecov Based on results I seen on https://github.com/ansible/ansible-creator/actions/runs/9609497816/job/26504809239?pr=233#step:9:51 i believe that is does not fully work. Workflow uses The job is defined inside https://github.com/ansible/ansible-creator/blob/main/.github/workflows/tox.yml and reuses workflow from I doubt this has anything to do with the use of reusable workflows because I use the same workflow on other projects and the codecov upload succeeded there, like https://github.com/ansible/vscode-ansible/actions/runs/9611712751/job/26510856390?pr=1318 One thing that worries me is that is see this while oidc is configured. Maybe the oidc does not work for forks?
|
Yup, thank you for updating the repo so v4 points to 4.5.0, that'll save us some work. That being saide, @ssbarnea is right, we're seeing different errors now: https://github.com/ansible/ansible-creator/actions/runs/9615967343/job/26524494680?pr=235#step:9:46 |
I just noticed it appears to be running the same command twice, I'm not sure if that is intentional:
|
FWIW GitHub only allows the |
The tokenless uploads you see in the logs don't use OIDC, they use the old-style mechanism as an exception. And then, the Codecov platform needs to verify the authenticity of such an upload because it's not coming from a trusted place (and isn't signed via OIDC). |
Closing this as answered by @webknjaz. Currently tokenless on forks via OIDC is not going to work as a token replacement. We have since made some changes to tokenless on forks to make it a smoother process. Going to close for now. |
We are getting the following errors:
We have oidc auth configured and have confirmed that
id-token: write
is configured.Example: https://github.com/ansible/ansible-dev-tools/blob/1905e099f98b3df29c51174c626383cbaaca0ea4/.github/workflows/tox.yml#L148
We were under the impression that OIDC would work fine with coverage from a fork, although it appears the coverage CLI is unaware that OIDC is configured and does not take that into account:
https://github.com/codecov/codecov-cli/blob/7432bad76c619e34d6617b578e039e7d733e3f00/codecov_cli/helpers/git.py#L100
Is this a bug or a misunderstanding?
Thanks- Brad
The text was updated successfully, but these errors were encountered: