Skip to content

Add Actions OIDC provider with workflow permission gating#36988

Draft
lunny wants to merge 1 commit intogo-gitea:mainfrom
lunny:lunny/actions_oidc
Draft

Add Actions OIDC provider with workflow permission gating#36988
lunny wants to merge 1 commit intogo-gitea:mainfrom
lunny:lunny/actions_oidc

Conversation

@lunny
Copy link
Copy Markdown
Member

@lunny lunny commented Mar 25, 2026

Ref: docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect

Fix #26383
Replace #25664

  • Implement Actions OIDC issuer endpoints (.well-known, JWKS, token) and signed JWT issuance tied to runs/jobs.
  • Introduce id-token permission parsing and enforcement for OIDC access, including owner/repo config clamping.
  • Expose OIDC request URL/token in runner context and add OIDC claim generation plus integration tests.

Generated by a coding agent with Codex 5.2

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 25, 2026
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code labels Mar 25, 2026
@lunny lunny mentioned this pull request Mar 25, 2026
@Menschomat
Copy link
Copy Markdown

@lunny in the current world full of supply chain attacks with credential stealers having the ability to use OIDC for e.g. workload identity federation would be awesome. Please guys, make this happen :)

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

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gitea as an OIDC IdP for Actions

3 participants