GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: support GitHub Actions OIDC authentication by aiqiaoy · Pull Request #411 · actions/create-github-app-token

Conversation

@aiqiaoy

@aiqiaoy aiqiaoy commented Nov 12, 2026 •
edited by parkerbxyz
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Adds GitHub Actions OIDC as an alternative to a private key for authenticating as a GitHub App. This feature isn't generally available yet, so it targets the beta branch for a pre-release.

Changes

  • private-key is now optional. When it's omitted, the action requests an Actions OIDC token (audience <GITHUB_SERVER_URL>/login/oauth) and uses it with client_id to look up the installation and create the installation access token.
  • When the action uses OIDC, it logs No 'private-key' provided; authenticating with GitHub Actions OIDC.
  • OIDC requires the client-id input (the deprecated app-id input isn't supported) and id-token: write workflow permissions.
  • OIDC only works for private apps owned by the workflow repository's organization. Enterprise installations still require private-key.
  • When neither a private key nor OIDC is available, the action fails before making any requests. The error covers both causes: a secret that isn't available, or missing id-token: write permissions.

Example

Beta releases don't update the v3 tag, so pin the beta release tag:

permissions:
  id-token: write

steps:
  - uses: actions/create-github-app-token@<beta-release-tag>
    with:
      client-id: ${{ vars.APP_CLIENT_ID }}

README updates are deferred until the feature is generally available.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tangrufus and kouki-dan reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
aiqiaoy added 2 commits November 10, 2026 10:50
@aiqiaoy
allow github app used in actions to auth with oidc
d5d25c4
@aiqiaoy
revert readme changes (not ready to ship yet)
7650507
@aiqiaoy
aiqiaoy requested a review from a team as a code owner November 12, 2026 17:23
Copilot AI balanced review requested due to automatic review settings November 12, 2026 17:23
@aiqiaoy aiqiaoy changed the title Allow App to auth using Actions OIDC feature (Feature is not GA yet) Allow App to auth using Actions OIDC (Feature is not GA yet) Nov 12, 2026
Copilot started reviewing on behalf of aiqiaoy November 12, 2026 17:24
View session
Copilot AI reviewed Nov 12, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The snapshot includes ANSI color escapes that are absent from captured stderr when FORCE_COLOR is unset, causing the test to fail under the checked-in CI configuration.

1 open issue
  • Medium severity Restore uncolored stderr snapshot expectation · New
What changed in this PR

Adds GitHub Actions OIDC authentication as an alternative to private keys for creating GitHub App installation tokens. The feature is not yet generally available.

Changes:

  • Uses OIDC when private-key is omitted, requiring client-id and id-token: write.
  • Preserves private-key authentication and rejects OIDC for enterprise installations.
  • Adds OIDC tests and updates action metadata, snapshots, and the bundled entrypoint.
File Description
tests/​main-oidc-auth.test.js Tests OIDC token creation, scoping, outputs, and failures.
tests/​main-missing-private-key.test.js Tests missing private-key and OIDC credentials.
tests/​index.js.snapshot Updates expected authentication output and error formatting.
main.js Requires an explicit client ID for OIDC authentication.
lib/​main.js Selects authentication mode and guards enterprise usage.
lib/​create-oidc-auth.js Adds OIDC-backed installation discovery and token requests.
dist/​main.cjs Bundles the new authentication behavior.
action.yml Makes the private key optional and describes OIDC requirements.

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tests/index.js.snapshot Resolved

Uh oh!

There was an error while loading. Please reload this page.

aiqiaoy and others added 2 commits November 12, 2026 17:41
@aiqiaoy
fix test
b3fd4c3
@parkerbxyz
fix: validate OIDC availability up front and drop dist changes
ae8d381
- Check for a private key or OIDC permissions before resolving the target,
  with an error that covers both a missing secret and missing id-token permissions
- Add @ts-check and JSDoc to create-oidc-auth.js
- Clarify the enterprise OIDC guard comment
- Restore dist/main.cjs; the release workflow rebuilds it
- Add missing trailing newlines

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz parkerbxyz changed the title Allow App to auth using Actions OIDC (Feature is not GA yet) feat: support GitHub Actions OIDC authentication Nov 16, 2026
@parkerbxyz
parkerbxyz changed the base branch from main to beta November 16, 2026 17:00
@parkerbxyz parkerbxyz mentioned this pull request Nov 16, 2026
test: strip ANSI escape codes from snapshot output #412
Merged
parkerbxyz and others added 8 commits November 16, 2026 17:20
@parkerbxyz
test: split OIDC tests into snapshot scenarios
b8947d3
- Serve ID tokens from a local server instead of mocking @actions/core internals
- Add OIDC support to the shared test helper and log request query strings
- Move the ANSI stripping harness change to actions#412

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
docs: clarify which apps support OIDC authentication
d0297f5
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
docs: explain why OIDC is rejected for enterprise installations
9bd7d95
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
feat: log when authenticating with OIDC
b5289c6
Makes a missing private-key secret easy to spot in the logs when the
workflow also grants id-token: write.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
refactor: keep auth selection as a ternary
16af315
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
test: reuse OIDC_ENV in app-id OIDC test
b6459a1
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
test: rename OIDC tests to match naming conventions
89f8c03
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@parkerbxyz
test: drop redundant OIDC ID token failure test
92ca15a
The failure is reported through the action's generic error handling, so
the test covered no OIDC-specific behavior. Rename the owner test after
what it uniquely checks: the audience derived from GITHUB_SERVER_URL.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
parkerbxyz
parkerbxyz approved these changes Nov 16, 2026
View reviewed changes
@aiqiaoy aiqiaoy mentioned this pull request Nov 16, 2026
feat: support GitHub App authentication with OIDC #413
Closed
@parkerbxyz
parkerbxyz merged commit 8240f10 into actions:beta Nov 17, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@create-app-token-action-releaser create-app-token-action-releaser Bot mentioned this pull request Nov 17, 2026
chore(beta): release 3.4.0-beta #414
Merged
@parkerbxyz parkerbxyz linked an issue Nov 18, 2026 that may be closed by this pull request
Idea - OIDC App Tokens #283
Open
parkerbxyz added a commit that referenced this pull request Nov 18, 2026
@parkerbxyz @aiqiaoy
test: strip ANSI escape codes from snapshot output (#412)
01b8009
Strips ANSI escape codes from captured `stdout` and `stderr` before
comparing test output to snapshots.

When `FORCE_COLOR` is set (some terminals and tools set it), Node
colorizes logged errors, so
`main-token-get-owner-set-client-error.test.js` fails locally even
though it passes in CI. With this change, snapshots match regardless of
color settings. CI output is unchanged.

Split out from #411.

Co-authored-by: Aiqiao Yan <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@oddharsh oddharsh mentioned this pull request Nov 23, 2026
chore(deps): dependency leverage digest oddharsh/site#1144
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@parkerbxyz parkerbxyz parkerbxyz approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Idea - OIDC App Tokens

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@aiqiaoy @parkerbxyz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.