checkout
Action for checking out a repo
Learn how actions/checkout configures SSH authentication and known hosts by managing private keys and known hosts via temporary files and the GIT_SSH_COMMAND environment variable.
How actions/checkout Prevents Ref Parsing Attacks with ASCII-Only Trimmingactions/checkout stops ref parsing attacks by trimming only ASCII whitespace. Learn how this protects against malicious branch names disguised as SHAs and secures fork PRs.
Git Version Required for SHA-256 Object Store Support in actions/checkoutactions/checkout needs Git 2.30+ for SHA-256 object store support. Learn why older versions fall back to the REST API and ensure smooth Git operations.
How actions/checkout Supports SHA-256 Repository Object Formatactions/checkout automatically supports SHA-256 repositories using the GitHub API and the --object-format=sha256 flag for seamless compatibility. Learn how.
How actions/checkout Validates Moved Tags After Fetching: A Deep Dive into the Verification Logicactions/checkout validates moved tags after fetching by comparing commit SHAs. Learn how this verification logic prevents workflow issues.
How actions/checkout Handles Ref Movement During FetchDiscover how actions/checkout handles ref movement during fetch. Learn about its two-step verification process for accurate commit checkouts.
How Non-Cone Mode Sparse Checkout Works in actions/checkoutUnderstand how non-cone mode sparse checkout in actions/checkout bypasses Git's cone-mode algorithm using legacy pattern matching for flexible repository checkouts.
How Cone Mode Sparse Checkout Works in actions/checkoutUnderstand how cone mode sparse checkout in actions/checkout leverages Git's native sparse checkout set command for efficient and optimized checkouts. Learn more.
Sparse Checkout Implementation in actions/checkout: Cone vs Non-Cone ModesExplore sparse checkout in actions/checkout. Learn about cone mode and non-cone mode implementations for efficient Git checkouts. Optimize your workflow today.
Does actions/checkout Support SSH Keys with the REST API Fallback?actions/checkout does not support SSH keys with REST API fallback. Learn why the action aborts and how to avoid errors with your Git operations.
Does actions/checkout Support Submodules with the REST API Fallback?Discover if actions/checkout supports submodules when falling back to the REST API. Learn about limitations and potential errors to avoid in your GitHub Actions workflows.
Limitations of the REST API Fallback in actions/checkoutDiscover the limitations of the REST API fallback in actions/checkout. Learn why it disables Git-LFS, submodules, SSH, and more by downloading a static archive instead of a full Git clone.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →