Skip to content

Instantly share code, notes, and snippets.

@anshulsahni
Created September 10, 2020 19:02
Show Gist options
  • Save anshulsahni/435edc0928665d972eb642e7f54b0f94 to your computer and use it in GitHub Desktop.
Save anshulsahni/435edc0928665d972eb642e7f54b0f94 to your computer and use it in GitHub Desktop.
Using submodules in actions/checkout@v2 for private Repos
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: <<true | recursive>>
# Generate a personal access token from https://github.com/settings/tokens
# Added that token as a secret in your repo at https://github.com/<<username>>/<<repo>>/settings/secrets/new
# In the token key below, access the same token using secrets.<<YOUR_SECRET_NAME>>
token: ${{ secrets.MY_ACCOUNT_PAT }}
# For more reference see
# - https://github.com/actions/checkout/issues/116#issuecomment-644419389
# - https://github.com/actions/checkout/issues/116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment