encore-mieux/Sparse Checkout

Sparse checkout a git repository, especially to speedup mono-repositories clone time

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jun 20, 2023
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: encore-mieux/sparse-checkout@5b2844421d827b2fd5e629020dcd4a08d18e3a09 # v0.4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
patternsGit sparse checkout patterns. [Learn more by reading git documentation](https://git-scm.com/docs/git-sparse-checkout#Documentation/git-sparse-checkout.txt-emsetem) yes*
tokenPersonal access token (PAT) used to fetch the repository. The PAT is configured with the local git config, which enables your scripts to run authenticated git commands. The post-job step removes the PAT. We recommend using a service account with the least permissions necessary. Also when generating a new PAT, select the least scopes necessary. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) yes${{ github.token }}
branchThe branch you want to check out yes${{ github.ref }}
shaThe sha1 of the head commit of the branch you want to check out yes${{ github.sha }}

no outputs