Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs: document GitHub Actions immutable OIDC subject claims
Claude9041e5736d2d
diff --git a/docs/documentation/platform/identities/oidc-auth/github.mdx b/docs/documentation/platform/identities/oidc-auth/github.mdxindex dc9fe01ae8..caa5513a53 100644--- a/docs/documentation/platform/identities/oidc-auth/github.mdx+++ b/docs/documentation/platform/identities/oidc-auth/github.mdx@@ -86,6 +86,9 @@ In the following steps, we explore how to create and use identities to access th- Issuer: The unique identifier of the identity provider issuing the JWT. This value is used to verify the iss (issuer) claim in the JWT to ensure the token is issued by a trusted provider. This should be set to `https://token.actions.githubusercontent.com`- CA Certificate: The PEM-encoded CA cert for establishing secure communication with the Identity Provider endpoints. For Github workflows, this can be left as blank.- Subject: The expected principal that is the subject of the JWT. The format of the sub field for GitHub workflow OIDC tokens is as follows: `"repo:<owner>/<repo>:<environment>"`. The environment can be where the GitHub workflow is running, such as `environment`, `ref`, or `job_workflow_ref`. For example, if you have a repository owned by octocat named example-repo, and the GitHub workflow is running on the main branch, the subject field might look like this: `repo:octocat/example-repo:ref:refs/heads/main`+ <Note>+ Repositories created after July 15, 2026 (and older repositories that opt in to Github's **Use immutable subject claim** setting) use an immutable subject format where the owner and repository names are suffixed with their permanent numeric IDs using `@` as the delimiter: `repo:octocat@583231/example-repo@1296269:ref:refs/heads/main`. If the subject you configure doesn't include these IDs, authentication fails with a `403` error. You can find the IDs with the Github API: `GET /repos/{owner}/{repo}` returns the repository ID (`id`) and the owner ID (`owner.id`). Alternatively, a glob pattern such as `repo:octocat@*/example-repo@*:ref:refs/heads/main` matches the immutable format without hardcoding the IDs.+ </Note>- Audiences: A list of intended recipients. This value is checked against the aud (audience) claim in the token. By default, set this to the URL of the repository owner, such as the organization that owns the repository (e.g. `https://github.com/octo-org`).- Claims: Additional information or attributes that should be present in the JWT for it to be valid. You can refer to Github's [documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#understanding-the-oidc-token) for the complete list of supported claims.- Access Token TTL (default is `2592000` equivalent to 30 days): The lifetime for an acccess token in seconds. This value will be referenced at renewal time.diff --git a/docs/integrations/cicd/githubactions.mdx b/docs/integrations/cicd/githubactions.mdxindex c9f6977575..b27b17499e 100644--- a/docs/integrations/cicd/githubactions.mdx+++ b/docs/integrations/cicd/githubactions.mdx@@ -141,7 +141,17 @@ In the following steps, we explore how to configure GitHub Actions to authentica- `repo:octocat/example-repo:ref:refs/heads/main` (specific branch)- `repo:octocat/example-repo:environment:production` (specific environment)- `repo:octocat/example-repo:*` (any context in the repository)-++ <Note>+ Repositories created after July 15, 2026 (and older repositories that opt in to GitHub's **Use immutable subject claim** setting) use an immutable subject format where the owner and repository names are suffixed with their permanent numeric IDs using `@` as the delimiter:++ ```+ repo:<owner>@<owner-id>/<repo>@<repo-id>:<context>+ ```++ For example: `repo:octocat@583231/example-repo@1296269:ref:refs/heads/main`. If the subject you configure doesn't include these IDs, authentication fails with a `403` error. You can find the IDs with the GitHub API: `GET /repos/{owner}/{repo}` returns the repository ID (`id`) and the owner ID (`owner.id`). Alternatively, a glob pattern such as `repo:octocat@*/example-repo@*:ref:refs/heads/main` matches the immutable format without hardcoding the IDs.+ </Note>+<Tip>If you're unsure about the exact subject format, you can use [github/actions-oidc-debugger](https://github.com/github/actions-oidc-debugger) to inspect the OIDC token claims from your workflow.</Tip>