Add checkout-as-app action and enhance github-app-auth#9
Merged
Conversation
Add a new `checkout-as-app` composite action that combines GitHub App authentication with repository checkout in a single step. This replaces the previous pattern of checkout -> auth -> re-checkout by doing auth first (via github-app-auth) then a single checkout with the app token baked into the remote URL, so subsequent git operations work seamlessly. Changes to github-app-auth: - Add `skip-checkout` input (default: false) for backward compatibility while allowing checkout-as-app to handle checkout separately - Add `user-email` output - Add debug output step for authentication info - Use shell variables for cleaner output computation https://claude.ai/code/session_013AzQ3VqAJ2sGSyUFDRBS2X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR introduces a new GitHub Action (
checkout-as-app) that combines GitHub App authentication with repository checkout, and enhances the existinggithub-app-authaction with additional functionality.Key Changes
New Action:
checkout-as-appactions/checkoutinputs (repository, ref, path, clean, filter, sparse-checkout, fetch-depth, fetch-tags, lfs, submodules, etc.)Enhanced
github-app-authActionskip-checkoutinput to allow the action to be used without performing its own checkout (useful when called fromcheckout-as-app)user-emailoutput that constructs the GitHub App bot email in the standard format:{user-id}+{user-name}@users.noreply.github.comskip-checkoutinputuser-emailoutput instead of inline computationImplementation Details
checkout-as-appaction is a two-step composite action: first it authenticates viagithub-app-authwithskip-checkout: true, then it performs checkout usingactions/checkoutwith the obtained tokengithub-app-authusagehttps://claude.ai/code/session_013AzQ3VqAJ2sGSyUFDRBS2X