Skip to content

ci: use OIDC authentication for Codecov uploads (remaining workflows) - #7478

Merged
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:codecov_oidc_step2
Nov 5, 2026
Merged

thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:codecov_oidc_step2

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

follow-up to 18958e4, which updated the e2e workflow, but forgot to update the other workflows.

Replace the CODECOV_TOKEN secret with GitHub Actions OIDC authentication.

Codecov supports tokenless uploads for public repositories, but authenticated uploads are still needed to protect coverage results on protected branches from unauthorized uploads.

Grant id-token: write at the job level to allow Codecov to request a short-lived OIDC token. This permission does not grant repository write access, and scoping it to the job avoids granting it to other jobs added to the workflow in the future.

Coverage uploads from forked pull requests continue to use Codecov's tokenless upload mechanism.

See https://github.com/codecov/codecov-action/blob/v7.1.1/README.md#using-oidc

Summary

Release notes (optional)

A picture of a cute animal (not mandatory but encouraged)

follow-up to 18958e4, which updated
the e2e workflow, but forgot to update the other workflows.

Replace the CODECOV_TOKEN secret with GitHub Actions OIDC authentication.

Codecov supports tokenless uploads for public repositories, but
authenticated uploads are still needed to protect coverage results on
protected branches from unauthorized uploads.

Grant `id-token: write` at the job level to allow Codecov to request
a short-lived OIDC token. This permission does not grant repository
write access, and scoping it to the job avoids granting it to other
jobs added to the workflow in the future.

Coverage uploads from forked pull requests continue to use Codecov's
tokenless upload mechanism.

See https://github.com/codecov/codecov-action/blob/v7.1.1/README.md#using-oidc

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@thaJeztah
thaJeztah merged commit 949b412 into docker:master Nov 5, 2026
114 checks passed
@thaJeztah
thaJeztah deleted the codecov_oidc_step2 branch November 5, 2026 10:28
@thaJeztah

Copy link
Copy Markdown
Member Author

25.0 branch doesn't have a token set, so no backport needed for that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants