Status
Fixed in Octopus 2026.4.7569, which added support for GitHub's immutable subject claims.
Existing service account identities need to be updated after upgrading.
Affected versions
All versions of Octopus earlier than 2026.4.7569 are affected. GitHub Enterprise Server isn’t affected.
Symptom
OIDC login from GitHub Actions fails, and the subject in the error has an ID after the owner (octo-org@123456) and repository names (octo-repo@456789):
Error: Could not find matching identity for presented assertions. Assertions - Issuer: 'https://token.actions.githubusercontent.com', Subject: 'repo:octo-org@123456/octo-repo@456789:ref:refs/heads/main', Audience: '<service-account-id>'
Why it happens
On 15 July 2026, GitHub changed the OIDC subject to the immutable subject format for repositories created, renamed or transferred after that date, or any repositories that opt in.
Octopus versions before 2026.4.7569 generate subject claims with the previous format, repo:octo-org/octo-repo:ref:refs/heads/main, causing OIDC login to fail as the subject doesn't match.
Workaround
Manually switch the service account's OIDC identity to the immutable subject, using the edit icon next to Subject, and set it to the subject returned in the error:
repo:octo-org@123456/octo-repo@456789:ref:refs/heads/main
After upgrading, any identities that used the workaround can be switched back from a custom subject to the automatically generated one.
Fix
Upgrade to Octopus 2026.4.7569+ and edit any existing service account Github OIDC identities. Select Use immutable subject claim and enter the Owner ID and Repository ID. The Subject will be automatically generated.
The Owner ID and Repository ID can be retrieved using the GitHub CLI:
gh api repos/OWNER/REPO --jq '.owner.id, .id'