Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.
A GitHub Actions job exchanges its OIDC token for a short-lived theAuth access token, with no stored client secret.
Go only. The TypeScript package has no GitHub helper, and its jwtBearer grant expects an ID-JAG assertion (typ: oauth-id-jag+jwt, a client_id claim and aud equal to the issuer). A raw GitHub OIDC token is refused. The full Go write-up is in go/docs/github-actions-oidc.md.
1
Request the job’s OIDC token
Grant id-token: write and request a token for your audience. GitHub signs claims that name the repository, branch, environment and workflow.
Post the token to the theAuth token endpoint with the RFC 7523 jwt-bearer grant. Add client_id=<agent client id> to make the token act as an agent, so the agent’s policy and rate limit apply.
GitHubActionsIssuer refuses to build an issuer with no restriction. Each of Repository, RepositoryOwner, Refs and Environment adds a matcher, and all matchers must pass. SubjectMapper maps GitHub’s sub to a local user, because the built-in mapper expects a ULID.
iss, err := theauth.GitHubActionsIssuer(theauth.GitHubActionsOptions{ Repository: "acme/app", // exact owner/name Refs: []string{"refs/heads/main"}, // or one glob: "refs/heads/release/*" Environment: "production", Audience: "https://auth.example.com/gh", SubjectMapper: myWorkflowMapper{}, // GitHub's sub is not a ULID})if err != nil { log.Fatal(err)}cfg.AuthorizationServer = &theauth.AuthorizationServerConfig{ Issuer: "https://auth.example.com", Resources: resources, JWTBearer: &theauth.JWTBearerConfig{TrustedJWTIssuers: []theauth.TrustedJWTIssuer{iss}},}
If Audience is empty, the required aud is your authorization server issuer URL.
4
Check a denial
A workflow that fails any matcher gets invalid_grant with the same description every time. Test it by running the workflow from a branch other than main. The operator sees the failed claim names in the audit log:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"theAuth","description":"Open-source auth for AI agents and humans. Agent identity, delegation, MCP OAuth 2.1, passkeys and SSO for TypeScript, Go and Python.","colors":{"primary":"#5f6600","light":"#eef35f","dark":"#4f5700"},"logo":{"light":"https://mintcdn.com/glincker/sN6aTYhmZH03W5q5/logo/wordmark-light.svg?fit=max\u0026auto=format\u0026n=sN6aTYhmZH03W5q5\u0026q=85\u0026s=9f06802deef022182bb2153d27ed6a4b","dark":"https://mintcdn.com/glincker/sN6aTYhmZH03W5q5/logo/wordmark-dark.svg?fit=max\u0026auto=format\u0026n=sN6aTYhmZH03W5q5\u0026q=85\u0026s=92b365fb88100a30331a53917b2589bf","href":"https://theauth.dev"},"favicon":{"light":"https://mintcdn.com/glincker/sN6aTYhmZH03W5q5/favicon.svg?fit=max\u0026auto=format\u0026n=sN6aTYhmZH03W5q5\u0026q=85\u0026s=15cf4fe3b096301039ae4bba4b11c339","dark":"https://mintcdn.com/glincker/sN6aTYhmZH03W5q5/favicon.svg?fit=max\u0026auto=format\u0026n=sN6aTYhmZH03W5q5\u0026q=85\u0026s=15cf4fe3b096301039ae4bba4b11c339"},"appearance":{"default":"dark","strict":false},"background":{"color":{"light":"#ffffff","dark":"#000000"}},"navbar":{"links":[{"icon":"globe","href":"https://theauth.dev","label":"Website"},{"icon":"clock-rotate-left","href":"https://github.com/glincker/theauth/releases","label":"Changelog"},{"icon":"github","href":"https://github.com/glincker/theauth","label":"GitHub"}],"primary":{"type":"button","label":"Get started","href":"/quickstart"}},"footer":{"socials":{"github":"https://github.com/glincker/theauth","x":"https://x.com/thegdsks","website":"https://theauth.dev"}},"search":{"prompt":"Search docs, agents, SDKs, standards"},"seo":{"metatags":{"og:site_name":"theAuth","og:type":"website","og:image":"https://docs.theauth.dev/og-logo.png","og:image:width":"1200","og:image:height":"630","twitter:card":"summary_large_image","twitter:image":"https://docs.theauth.dev/og-logo.png","twitter:site":"@thegdsks"},"indexing":"navigable"},"fonts":{"heading":{"family":"Inter","weight":300},"body":{"family":"Inter"}},"styling":{"codeblocks":"dark","latex":false},"errors":{"404":{"redirect":false,"title":"Page not found","description":"This page moved or never existed. Head to the [quickstart](/quickstart) or search above."}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","mcp"],"display":"header"},"interaction":{"drilldown":true},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"glincker","hasAudioNarration":false,"actualSubdomain":"glincker","customDomains":["docs.theauth.dev"],"gitSource":{"type":"github","owner":"glincker","repo":"theauth","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae6c6da8e7709423eee49b5","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Authentication","count":71},{"language":"default","tag":"Go","count":68},{"language":"default","tag":"Agents","count":51},{"language":"default","tag":"Platform","count":47},{"language":"default","tag":"OAuth providers","count":43},{"language":"default","tag":"Guides","count":33},{"language":"default","tag":"Advanced","count":27},{"language":"default","tag":"Get started","count":24},{"language":"default","tag":"Controls","count":20},{"language":"default","tag":"Framework adapters","count":18}],"searchSettings":{"showContentSnippets":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"JetBrains Mono\";src:url(\"/fonts/jetbrains-mono-var.woff2\") format(\"woff2\");font-weight:100 800;font-display:swap}:root{--ta-live: #eef35f;--ta-violet: #b6abff;--ta-teal: #00cbaa;--ta-mono: \"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--ta-r: 12px;--ta-face: #0e0f11;--ta-face-2: #141617;--ta-text: #cfcfd3;--ta-link: #b6abff;--ta-line: rgba(255, 255, 255, 0.08);--ta-ring: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.06));--ta-ring-hot: linear-gradient(180deg, rgba(238, 243, 95, 0.55), rgba(238, 243, 95, 0.12) 45%, rgba(238, 243, 95, 0.2));--ta-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));--ta-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 1px rgba(0, 0, 0, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.55), 0 24px 48px -12px rgba(0, 0, 0, 0.65);--ta-glow-op: 1;--ta-grain: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 9 0 0 0 -4.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E\")}html:not(.dark){--ta-face: #ffffff;--ta-face-2: #f6f6f7;--ta-text: #3a3d40;--ta-link: #5b4bc4;--ta-line: rgba(14, 15, 17, 0.1);--ta-ring: linear-gradient(180deg, rgba(14, 15, 17, 0.2), rgba(14, 15, 17, 0.08) 40%, rgba(14, 15, 17, 0.1));--ta-ring-hot: linear-gradient(180deg, rgba(95, 102, 0, 0.6), rgba(95, 102, 0, 0.18) 45%, rgba(95, 102, 0, 0.26));--ta-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));--ta-shadow: 0 1px 1px rgba(14, 15, 17, 0.06), 0 8px 16px -6px rgba(14, 15, 17, 0.1);--ta-glow-op: 0.35}html.dark body{background-color:#000}body{position:relative;font-feature-settings:\"cv11\", \"ss03\";-webkit-font-smoothing:antialiased}body::before,body::after{content:\"\";position:absolute;inset:0 0 auto 0;height:440px;z-index:-1;pointer-events:none;background:radial-gradient(54% 92% at 50% 0%, rgba(182, 171, 255, 0.5), transparent 72%),\n radial-gradient(38% 78% at 10% 0%, rgba(0, 203, 170, 0.42), transparent 72%),\n radial-gradient(36% 70% at 92% 0%, rgba(238, 243, 95, 0.34), transparent 72%)}body::before{opacity:calc(0.4 * var(--ta-glow-op))}body::after{opacity:calc(0.9 * var(--ta-glow-op));filter:saturate(1.2) brightness(1.25);-webkit-mask-image:var(--ta-grain), linear-gradient(to bottom, #000 0%, transparent 88%);-webkit-mask-size:220px 220px, 100% 100%;-webkit-mask-composite:source-in;mask-image:var(--ta-grain), linear-gradient(to bottom, #000 0%, transparent 88%);mask-size:220px 220px, 100% 100%;mask-composite:intersect}html{isolation:isolate}#content-area,#content-container{color:var(--ta-text)}#page-title{font-weight:300;letter-spacing:-0.03em;line-height:1.08;text-wrap:balance}#content-area h2{font-weight:300;letter-spacing:-0.025em}#content-area h3,#content-area h4{font-weight:500;letter-spacing:-0.02em}#header p,#content-area p{text-wrap:pretty}#header>div>div:first-child:not(:has(h1)){font-family:var(--ta-mono);font-size:0.75rem;letter-spacing:0.08em;text-transform:uppercase;color:#8d8d96}#content-area a:not(.card):not([data-component-part]){color:var(--ta-link)}#content-area a[href]:not(.card){text-decoration-color:color-mix(in srgb, var(--ta-link) 40%, transparent)}#content-area a[href]:not(.card):hover{text-decoration-color:currentColor}code,pre,kbd,samp{font-family:var(--ta-mono)!important;font-feature-settings:\"calt\" 0}#content-area :not(pre)>code{background:var(--ta-face-2);border:1px solid var(--ta-line);border-radius:6px;padding:0.1em 0.4em;font-size:0.875em;color:inherit}html.dark #content-area :not(pre)>code{color:#e4e4e7}.code-block{border-radius:var(--ta-r);border:1px solid transparent;box-shadow:var(--ta-shadow);background:var(--ta-sheen) padding-box, linear-gradient(#08090a, #08090a) padding-box, var(--ta-ring) border-box}.code-block-background,.code-block>div{border-radius:var(--ta-r);background-color:transparent}.code-block [data-component-part=\"code-block-root\"],.code-block pre{background:transparent}.code-block code{font-size:0.8125rem;line-height:1.7}.card,.accordion,.accordion-group,.callout{border:1px solid transparent;border-radius:var(--ta-r);box-shadow:var(--ta-shadow);background:var(--ta-sheen) padding-box, linear-gradient(var(--ta-face), var(--ta-face)) padding-box, var(--ta-ring) border-box}.card{transition:box-shadow 0.2s, transform 0.2s}.card:hover{transform:translateY(-1px)}html.dark .card:hover{border-color:rgba(238, 243, 95, 0.45)}.card [data-component-part=\"card-title\"]{font-weight:500;letter-spacing:-0.01em}.card [data-component-part=\"card-icon\"]{color:var(--ta-live)}html:not(.dark) .card [data-component-part=\"card-icon\"]{color:#5f6600}.accordion{margin-bottom:0.75rem;overflow:hidden}.accordion-group{overflow:hidden}.callout{padding:1rem 1.25rem}.callout[class*=\"border-yellow\"],.callout[class*=\"border-green\"],.callout[class*=\"border-blue\"],.callout[class*=\"border-red\"],.callout[class*=\"border-sky\"]{background:var(--ta-sheen) padding-box, linear-gradient(var(--ta-face), var(--ta-face)) padding-box, var(--ta-ring) border-box}@media (prefers-reduced-motion: reduce){.card{transition:none}.card:hover{transform:none}}#content-area table{border-collapse:separate;border-spacing:0;border:1px solid var(--ta-line);border-radius:var(--ta-r);overflow:hidden;box-shadow:var(--ta-shadow)}#content-area thead th{font-family:var(--ta-mono);font-size:0.75rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase;color:#8d8d96;background:var(--ta-face-2)}#content-area tbody td,#content-area thead th{border-bottom:1px solid var(--ta-line)}#content-area tbody tr:last-child td{border-bottom:0}#navbar>div.absolute,#navbar>div>div.absolute{background:color-mix(in srgb, var(--ta-face) 55%, transparent);border-bottom-color:var(--ta-line);backdrop-filter:none}#sidebar .sticky.pointer-events-none{background:none}#navbar .nav-tabs-item[data-active=\"true\"]{color:var(--ta-live)}html:not(.dark) #navbar .nav-tabs-item[data-active=\"true\"]{color:#5f6600}#navbar .nav-tabs-item[data-active=\"true\"]>div,#navbar .nav-tabs-item[data-active=\"true\"]::after{background:var(--ta-live)}html:not(.dark) #navbar .nav-tabs-item[data-active=\"true\"]>div,html:not(.dark) #navbar .nav-tabs-item[data-active=\"true\"]::after{background:#5f6600}#topbar-cta-button a>span.absolute{border-radius:50px;background:var(--ta-live);border:1px solid rgba(255, 255, 255, 0.35);box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(238, 243, 95, 0.45)}#topbar-cta-button a{padding-left:1rem;padding-right:0.75rem}#topbar-cta-button a .text-white,#topbar-cta-button a svg{color:#000!important}html:not(.dark) #topbar-cta-button a>span.absolute{background:#0e0f11;border-color:transparent;box-shadow:0 1px 1px rgba(14, 15, 17, 0.3)}html:not(.dark) #topbar-cta-button a .text-white,html:not(.dark) #topbar-cta-button a svg{color:#eef35f!important}#search-bar-entry{border-radius:50px;border:1px solid transparent;box-shadow:var(--ta-shadow);background:var(--ta-sheen) padding-box, linear-gradient(var(--ta-face-2), var(--ta-face-2)) padding-box, var(--ta-ring) border-box}#search-bar-entry:hover{background:var(--ta-sheen) padding-box, linear-gradient(var(--ta-face-2), var(--ta-face-2)) padding-box, var(--ta-ring-hot) border-box}#sidebar .sidebar-group-header{font-family:var(--ta-mono);font-size:0.6875rem;letter-spacing:0.08em;text-transform:uppercase;font-weight:500;color:#8d8d96}#sidebar a[aria-current=\"page\"]{border-radius:50px;color:var(--ta-live);background:rgba(238, 243, 95, 0.08);box-shadow:inset 0 0 0 1px rgba(238, 243, 95, 0.2)}html:not(.dark) #sidebar a[aria-current=\"page\"]{color:#4f5700;background:rgba(95, 102, 0, 0.09);box-shadow:inset 0 0 0 1px rgba(95, 102, 0, 0.25)}#sidebar a:not([aria-current=\"page\"]):hover{border-radius:50px}#table-of-contents a[data-active=\"true\"],#table-of-contents .toc-item[data-active=\"true\"]{color:var(--ta-live)}html:not(.dark) #table-of-contents a[data-active=\"true\"]{color:#5f6600}#sidebar img[src^=\"/brand-icons/\"],main img[src^=\"/brand-icons/\"]{width:1em;height:1em;display:inline-block;vertical-align:-0.125em;object-fit:contain}html.dark #sidebar img[src^=\"/brand-icons/\"]{filter:invert(1) brightness(0.9)}#footer{border-top:1px solid var(--ta-line)}"}]}
{"page":{"pagePath":"use-cases/github-actions-oidc","slug":"/use-cases/github-actions-oidc","pageMetadata":{"title":"GitHub Actions OIDC for CI agents (Go only)","description":"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.","href":"/use-cases/github-actions-oidc"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Step,Steps,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A GitHub Actions job exchanges its OIDC token for a short-lived theAuth access token, with no stored client secret.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Go only. The TypeScript package has no GitHub helper, and its `,_jsx(_components.code,{children:`jwtBearer`}),` grant expects an ID-JAG assertion (`,_jsx(_components.code,{children:`typ: oauth-id-jag+jwt`}),`, a `,_jsx(_components.code,{children:`client_id`}),` claim and `,_jsx(_components.code,{children:`aud`}),` equal to the issuer). A raw GitHub OIDC token is refused. The full Go write-up is in `,_jsx(_components.a,{href:`https://github.com/glincker/theauth/blob/main/go/docs/github-actions-oidc.md`,children:_jsx(_components.code,{children:`go/docs/github-actions-oidc.md`})}),`.`]})}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{children:[_jsx(Heading,{level:`3`,id:`request-the-job’s-oidc-token`,children:`Request the job’s OIDC token`}),_jsxs(_components.p,{children:[`Grant `,_jsx(_components.code,{children:`id-token: write`}),` and request a token for your audience. GitHub signs claims that name the repository, branch, environment and workflow.`]}),_jsx(CodeBlock,{filename:`.github/workflows/deploy.yml`,numberOfLines:`22`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`deploy`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`on`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` push`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` branches`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`main`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`permissions`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` id-token`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`write`}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:` # lets the job request an OIDC token`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` contents`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`read`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`jobs`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` deploy`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` runs-on`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`ubuntu-latest`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` environment`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`production`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` steps`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`Get a GitHub OIDC token`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` run`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`|`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` AUD=\"https://auth.example.com/gh\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` GH_TOKEN=$(curl -sS \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` -H \"Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN\" \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"$ACTIONS_ID_TOKEN_REQUEST_URL\u0026audience=$AUD\" | jq -r .value)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` echo \"::add-mask::$GH_TOKEN\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` echo \"GH_TOKEN=$GH_TOKEN\" >> \"$GITHUB_ENV\"`})}),`\n`]})})})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`3`,id:`exchange-it-for-an-access-token`,children:`Exchange it for an access token`}),_jsxs(_components.p,{children:[`Post the token to the theAuth token endpoint with the RFC 7523 `,_jsx(_components.code,{children:`jwt-bearer`}),` grant. Add `,_jsx(_components.code,{children:`client_id=\u003cagent client id>`}),` to make the token act as an agent, so the agent’s policy and rate limit apply.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`ACCESS`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`=$(`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` https://auth.example.com/oauth/token`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"assertion=`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$GH_TOKEN`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` resource=https://api.example.com/mcp`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` scope=api.read`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` | `}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`jq`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` .access_token`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"::add-mask::`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`echo`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"ACCESS_TOKEN=`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$ACCESS`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` >> `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$GITHUB_ENV`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`3`,id:`restrict-the-issuer-go`,children:`Restrict the issuer (Go)`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GitHubActionsIssuer`}),` refuses to build an issuer with no restriction. Each of `,_jsx(_components.code,{children:`Repository`}),`, `,_jsx(_components.code,{children:`RepositoryOwner`}),`, `,_jsx(_components.code,{children:`Refs`}),` and `,_jsx(_components.code,{children:`Environment`}),` adds a matcher, and all matchers must pass. `,_jsx(_components.code,{children:`SubjectMapper`}),` maps GitHub’s `,_jsx(_components.code,{children:`sub`}),` to a local user, because the built-in mapper expects a ULID.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`iss`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` := `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`theauth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`GitHubActionsIssuer`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`theauth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`GitHubActionsOptions`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Repository`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"acme/app\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// exact owner/name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Refs`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: []`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"refs/heads/main\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// or one glob: \"refs/heads/release/*\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Environment`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"production\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Audience`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://auth.example.com/gh\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` SubjectMapper`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`myWorkflowMapper`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{}, `}),_jsx(_components.span,{style:{color:`#6A9955`,\"--shiki-dark\":`#6A9955`},children:`// GitHub's sub is not a ULID`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` != `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`nil`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` log`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`Fatal`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`cfg`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`AuthorizationServer`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = \u0026`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`theauth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`AuthorizationServerConfig`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Issuer`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://auth.example.com\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` Resources`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`resources`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` JWTBearer`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: \u0026`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`theauth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`JWTBearerConfig`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`TrustedJWTIssuers`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: []`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`theauth`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4EC9B0`,\"--shiki-dark\":`#4EC9B0`},children:`TrustedJWTIssuer`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`iss`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`Audience`}),` is empty, the required `,_jsx(_components.code,{children:`aud`}),` is your authorization server issuer URL.`]})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`3`,id:`check-a-denial`,children:`Check a denial`}),_jsxs(_components.p,{children:[`A workflow that fails any matcher gets `,_jsx(_components.code,{children:`invalid_grant`}),` with the same description every time. Test it by running the workflow from a branch other than `,_jsx(_components.code,{children:`main`}),`. The operator sees the failed claim names in the audit log:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"jwt_bearer.claims_denied\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"targetType\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"jwt_issuer\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"targetId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"https://token.actions.githubusercontent.com\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"issuer\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"failed_claims\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"repository\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"ref\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"agent_id\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`\"agent_name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})]}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-is-enforced`,children:`What is enforced`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Enforced`}),_jsx(_components.th,{children:`Not enforced`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Every matcher must pass`}),_jsx(_components.td,{children:`Tests sign with a local key. The GitHub request flow has not run against GitHub from the repository, so check it in your pipeline first.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Constructor refuses an issuer with no restriction`}),_jsx(_components.td,{children:`Hand-built issuers: add the matchers yourself, or any public repository’s workflow can log in`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Denial text never names the failed claim`}),_jsxs(_components.td,{children:[`Long jobs: compare duration with `,_jsx(_components.code,{children:`AssertionMaxAge`}),` (default 300 seconds)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Audit event lists failed claim names only`}),_jsxs(_components.td,{children:[`Scope limits come from `,_jsx(_components.code,{children:`scope`}),` and `,_jsx(_components.code,{children:`resource`}),` on the exchange`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`GitHub’s environment protection rules (such as reviewers) run before the job, so the token is issued after approval`}),_jsx(_components.td,{children:`No TypeScript path`})]})]})]}),`\n`,_jsx(_components.p,{children:`Claim names come from GitHub’s live discovery document.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"GitHub Actions OIDC for CI agents (Go only)","description":"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.","href":"/use-cases/github-actions-oidc"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request the job’s OIDC token","slug":"request-the-job’s-oidc-token","depth":3,"children":[]},{"title":"Exchange it for an access token","slug":"exchange-it-for-an-access-token","depth":3,"children":[]},{"title":"Restrict the issuer (Go)","slug":"restrict-the-issuer-go","depth":3,"children":[]},{"title":"Check a denial","slug":"check-a-denial","depth":3,"children":[]},{"title":"What is enforced","slug":"what-is-enforced","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"glincker","siteName":"theAuth","title":"GitHub Actions OIDC for CI agents (Go only) - theAuth","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-17T05:51:49.410Z","gitLastModified":"2026-10-17T05:51:32.000Z","originalFileLocation":"use-cases/github-actions-oidc.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.\">\u003cmeta data-mint-head name=\"application-name\" content=\"theAuth\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"GitHub Actions OIDC for CI agents (Go only) - theAuth\">\u003cmeta data-mint-head property=\"og:description\" content=\"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"theAuth\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.theauth.dev/use-cases/github-actions-oidc\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.theauth.dev/og-logo.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"GitHub Actions OIDC for CI agents (Go only) - theAuth\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.theauth.dev/og-logo.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/glincker/MCvcDLGp1s98lfDL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"theAuth\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5f6600\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.theauth.dev/use-cases/github-actions-oidc\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/use-cases/github-actions-oidc.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.theauth.dev/#organization\",\"name\":\"theAuth\",\"url\":\"https://docs.theauth.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/glincker/sN6aTYhmZH03W5q5/logo/wordmark-light.svg?fit=max\u0026auto=format\u0026n=sN6aTYhmZH03W5q5\u0026q=85\u0026s=9f06802deef022182bb2153d27ed6a4b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.theauth.dev#website\",\"name\":\"theAuth\",\"url\":\"https://docs.theauth.dev\",\"publisher\":{\"@id\":\"https://docs.theauth.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.theauth.dev/use-cases/github-actions-oidc#webpage\",\"url\":\"https://docs.theauth.dev/use-cases/github-actions-oidc\",\"name\":\"GitHub Actions OIDC for CI agents (Go only)\",\"description\":\"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.\",\"dateModified\":\"2026-10-17T05:51:32.000Z\",\"isPartOf\":{\"@id\":\"https://docs.theauth.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.theauth.dev/use-cases/github-actions-oidc#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.theauth.dev/use-cases/github-actions-oidc#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Use cases\",\"item\":\"https://docs.theauth.dev/use-cases/mcp-server-behind-oauth\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GitHub Actions OIDC for CI agents (Go only)\",\"item\":\"https://docs.theauth.dev/use-cases/github-actions-oidc\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.theauth.dev/use-cases/github-actions-oidc#article\",\"headline\":\"GitHub Actions OIDC for CI agents (Go only)\",\"name\":\"GitHub Actions OIDC for CI agents (Go only)\",\"description\":\"Exchange a GitHub Actions OIDC token for a short-lived theAuth access token, with no stored client secret. Go only, as TypeScript has no helper.\",\"url\":\"https://docs.theauth.dev/use-cases/github-actions-oidc\",\"mainEntityOfPage\":{\"@id\":\"https://docs.theauth.dev/use-cases/github-actions-oidc#webpage\"},\"image\":\"https://docs.theauth.dev/og-logo.png\",\"dateModified\":\"2026-10-17T05:51:32.000Z\",\"publisher\":{\"@id\":\"https://docs.theauth.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.theauth.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"theAuth\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"theAuth\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/use-cases/github-actions-oidc.md","siteName":"theAuth","nav":{"global":null,"tabs":[{"tab":"Get started","icon":"rocket","pages":[{"title":"Get started","href":""}]},{"tab":"Authentication","icon":"key","pages":[{"title":"Authentication","href":"/auth"}]},{"tab":"Agents","icon":"robot","pages":[{"title":"Agents","href":"/agents"}]},{"tab":"Platform","icon":"layer-group","pages":[{"title":"Platform","href":"/mcp"}]},{"tab":"Advanced","icon":"sliders","groups":[{"group":"Compliance and security","icon":"scale-balanced","pages":[{"title":"Compliance","icon":"file-lines","href":"/compliance"},{"title":"Verifiable credential exports","icon":"shield-check","href":"/compliance/verifiable-credentials"},{"title":"GDPR data rights","icon":"file-lines","href":"/gdpr"},{"title":"Password breach checking","icon":"shield-halved","href":"/hibp"},{"title":"Sign-in gate","icon":"shield-check","href":"/sign-in-gate"},{"title":"Trusted devices","icon":"shield-halved","href":"/trusted-device"},{"title":"Multi-session","icon":"key","href":"/multi-session"},{"title":"OWASP agentic AI top 10 mapped to theAuth","href":"/owasp-agentic-mapping"},{"title":"Security doctor","sidebarTitle":"Security doctor","href":"/security-doctor"}]},{"group":"Use cases","icon":"lightbulb","pages":[{"title":"Protect an MCP server with OAuth 2.1","description":"Put an MCP server behind OAuth 2.1 with theAuth. Clients get a PKCE token, and the server checks audience (RFC 8707) and scopes on each request.","href":"/use-cases/mcp-server-behind-oauth"},{"title":"GitHub Actions OIDC for CI agents (Go only)","href":"/use-cases/github-actions-oidc"},{"title":"OAuth 2.1 server on SQLite in one Go binary","description":"Run an OAuth 2.1 authorization server and MCP resource server from one Go binary and one SQLite file. Go only, not in the TypeScript package.","href":"/use-cases/sqlite-oauth-server"}]},{"group":"Lifecycle","icon":"arrows-spin","pages":[{"title":"Lifecycle hooks","icon":"plug","href":"/hooks"},{"title":"Community integrations","icon":"puzzle-piece","href":"/community-integrations"},{"title":"requireScope","href":"/require-scope"},{"title":"Webhooks","icon":"globe","href":"/webhooks"},{"title":"Event streaming","icon":"tower-broadcast","href":"/event-streaming"},{"title":"Custom session fields","icon":"sliders","href":"/custom-session"},{"title":"Additional fields","icon":"puzzle-piece","href":"/additional-fields"},{"title":"Email templates","icon":"file-lines","href":"/email-templates"},{"title":"Email adapters","icon":"envelope","href":"/email-adapters"},{"title":"Internationalization","icon":"globe","href":"/i18n"}]},{"group":"Identity primitives","icon":"user-shield","pages":[{"title":"W3C DID identity","icon":"fingerprint","href":"/did"},{"title":"Verifiable credentials","icon":"circle-check","href":"/verifiable-credentials"},{"title":"Agent identity federation","icon":"network-wired","href":"/federation"},{"title":"Multi-tenant isolation","icon":"building","href":"/multi-tenant"}]},{"group":"Standards","icon":"book-open","pages":[{"title":"Standards alignment","icon":"book-open","href":"/standards"}]}]},{"tab":"Migrate","icon":"arrow-right-arrow-left","pages":[{"title":"Migrate","href":"/migrate"}]},{"tab":"Reference","icon":"book","pages":[{"title":"Reference","href":"/api"}]},{"tab":"Compare","icon":"code-compare","pages":[{"title":"Compare","href":"/compare"}]},{"tab":"Go","icon":"golang","pages":[{"title":"Go","href":"/go"}]}]},"basePath":"","title":"GitHub Actions OIDC for CI agents (Go only) - theAuth","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}