Repository navigation
ci: Log in to Docker Hub with OIDC instead of a stored token - #214
Conversation
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Switches Docker Hub CI login from a stored token to OIDC, adding id-token: write and updating docker/login-action. The authentication change and its OIDC connection restrictions need human security review.
Turn on auto-fix | Re-trigger cubic
The Docker OIDC connection trusts repo:Flagsmith/*:environment:dockerhub, and the environment's deployment rules limit publishing to release tags (and main where the workflow can be run manually).
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Switches Docker Hub publishing login from a stored token to OIDC, adding id-token: write and an environment. The OIDC connection's push restrictions and environment deployment rules are external config that must be human-verified before enabling.
Turn on auto-fix | Re-trigger cubic
Logs in to Docker Hub with a short-lived OIDC token instead of a stored access token (ENG-1168).
dockerhubenvironment, whose deployment rules allow onlyv*tags (plusmainwhere the workflow can be run manually).docker/login-actionv4.8.0 exchanges the job's GitHub OIDC token through our Docker OIDC connection (vars.DOCKERHUB_OIDC_CONNECTIONID). The connection trustsrepo:Flagsmith/*:environment:dockerhubto push only to our listed images.id-token: write.The old Docker Hub secrets stay until a release has published through OIDC; they're deleted afterwards. See Publishing Docker images.