Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
this is the right ask. the gap between github's existing actions OIDC (which already issues short-lived tokens per workflow run) and github app auth is frustrating, especially since the trust model is basically already there. until github ships something like this natively, one pattern that helps with the key exposure risk is storing the private key in a vault and having your workflow fetch a short-lived reference at runtime rather than baking the key into env vars or repo secrets. i work on 1claw, which does exactly that (secrets in an HSM-backed vault, agent gets a scoped token, raw key never hits the runner env), so it's one option, but the real fix is github closing this gap natively like you're proposing. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Workflow Configuration
Discussion Details
Problem
Currently, GitHub Actions workflows that authenticate as custom GitHub Apps must manage long-lived private keys, even when both the workflow and the App are hosted by GitHub.
This introduces unnecessary complexity:
GitHub already provides OIDC-based workload identity, and npm Trusted Publishing demonstrates how this can eliminate long-lived credentials from CI/CD workflows.
Why can't GitHub Actions authenticate as GitHub Apps using the same approach?
Proposal: GitHub App Trusted Workflows
Introduce a new Trusted workflows section in GitHub App settings, similar to npm Trusted Publishing.
Allow GitHub App owners to authorize specific GitHub Actions workflows to obtain short-lived installation access tokens through OIDC, without requiring private keys.
1. Proposed native configuration page
The following is a conceptual UI design for GitHub App settings:
App owners should be able to configure multiple trusted workflows, each with independently scoped installations, repository access, and permissions.
These permissions must not exceed those already granted to the GitHub App installation.
2. Proposed developer experience
Before: Current private-key-based authentication
This requires generating a private key, storing it as a secret, and managing its lifecycle.
After: Proposed OIDC-based authentication
That's it.
The Client ID is a public identifier, not a secret.
The proposed
v4example is illustrative. This functionality could also be introduced as an authentication mode in the existing official action.3. Complete workflow example
The resulting issue would be created by
ship-fail[bot]instead ofgithub-actions[bot].Existing GitHub CLI, Octokit,
actions/github-script, andactions/checkoutintegrations could continue using installation access tokens without modification.4. Proposed authentication architecture
sequenceDiagram participant W as GitHub Actions Workflow participant O as GitHub OIDC Provider participant A as GitHub App Authentication participant P as Trusted Workflow Policy participant G as GitHub API W->>O: Request OIDC identity token O-->>W: Short-lived signed OIDC JWT W->>A: Exchange OIDC JWT and Client ID A->>P: Verify identity and authorization P-->>A: Authorized installation and permissions A-->>W: Short-lived installation access token W->>G: API request using installation token G-->>W: Response as custom-app[bot]GitHub already controls both the OIDC identity provider and the GitHub App installation token issuer.
The entire authentication flow could therefore be implemented natively within GitHub, without involving any third-party infrastructure.
5. Security considerations
The trusted workflow policy should support verification of:
Additional security requirements:
OIDC authorization should operate at the job level, rather than implying isolation between individual steps within a job.
Comparison with existing solutions
Benefits
Motivation and use case
As an open-source maintainer and software architect, I am increasingly using GitHub Actions to orchestrate autonomous AI agents that collaborate through issues, pull requests, code reviews, and repository automation.
Each agent should have its own GitHub App identity, permissions, and audit trail.
However, configuring and maintaining a private key for every agent introduces unnecessary security risks and operational complexity.
Existing external token brokers demonstrate that OIDC-based GitHub App authentication is technically feasible. But developers should not need to deploy and maintain authentication infrastructure just to allow one GitHub-native resource to authenticate as another GitHub-native resource.
Related projects and references
Questions for the GitHub team
actions/create-github-app-tokensupport a secretless authentication mode?GitHub Actions already provides trusted workload identities. GitHub Apps already provides independent automation identities. Connecting these two capabilities natively feels like a natural next step.
GitHub Actions + GitHub Apps + OIDC = Secretless automation with independent identities.
All reactions