Skip to content

Support --reference to local repository#1526

Open
thisisnacho wants to merge 1 commit intoactions:mainfrom
thisisnacho:main
Open

Support --reference to local repository#1526
thisisnacho wants to merge 1 commit intoactions:mainfrom
thisisnacho:main

Conversation

@thisisnacho
Copy link

This is very much a needed feature when dealing with self-hosted runners, caches, monorepos, etc.
Updated #1400 to the latest version of actions/checkout, resolving all conflicts and making it ready to merge.

* Add support for reference repository parameter

---------

Co-authored-by: Diego Dompe <ddompe@gmail.com>
@thisisnacho thisisnacho requested a review from a team as a code owner October 28, 2023 15:32
@lure8225
Copy link

lure8225 commented May 6, 2024

Hi any progress here? We would really like to get this into the action for use on self hosted runners

@petergoldsmith-anzx
Copy link

Also including our interest in having this for self hosted runners with large repos

@AlirezaDarbandi

This comment has been minimized.

@sizehnde
Copy link

sizehnde commented Nov 12, 2025

Bumping this PR. It would greatly benefit certain monorepo workflows.

We have implemented an Action internally to support reference clones that essentially has to reimplement the portions of actions/checkout we care about; it would be nice for this to just be a built in feature.

With the introduction of custom runner images, this is even more desireable now, since this type of workflow can be achieved on GitHub-hosted runners now too, not just self-hosted runners.

@arianvp
Copy link

arianvp commented Jan 21, 2026

Heya we're using this in production now and it's great. Could this please be merged?

@sizehnde
Copy link

I reached out to GitHub support about this PR a few months back and was directed to the "Note" section of the README, which currently says "[...] we are allocating resources towards other areas of Actions and are not taking contributions to this repository at this time." I guess they really mean it!

We have also been using this in our CI system and it has greatly improved checkout performance, both in speed and stability.

@b4u-mw
Copy link

b4u-mw commented Mar 5, 2026

Hello,

I have created a more advanced implementation: #2384

Reduces my submodule checkout (5GB) form 2:30min to 30s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants