Sitelet https://github.com/taiki-e/checkout-action/pull/16
Skip to content

Support checking out private repository - #16

Merged
taiki-e merged 1 commit into
mainfrom
private
Apr 18, 2026
Merged

taiki-e merged 1 commit into
mainfrom
private

Conversation

@taiki-e

@taiki-e taiki-e commented Apr 2, 2026 •

Copy link
Copy Markdown
Owner

Closes #1

To use this action in private repositories, explicitly set token input option:

- uses: taiki-e/checkout-action@v1
  with:
    token: ${{ secrets.GITHUB_TOKEN }}

Unlike actions/checkout and #1 (comment) 's approach, this PR's implementation doesn't write credentials to disk.

FYI: actions/checkout@v6.0.2 writes credentials to disk even if preserve-credentials is false (click to show details)

See also https://github.com/orgs/community/discussions/179107#discussioncomment-14906259

@taiki-e
taiki-e merged commit f8fc167 into main Apr 18, 2026
66 checks passed
@taiki-e
taiki-e deleted the private branch April 18, 2026 06:41
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.

Support checking out private repository

1 participant