Action to checkout the repository compatible for PRs, issues and push events. Workaround for actions/checkout#331](actions/checkout#331.
Set permissions to read contents and pull-requests. This is required to get the PR branch.
on: issue_comment
permissions:
contents: read
pull-requests: read- uses: hoverkraft-tech/ci-github-common/actions/checkout@71b85947453f32b5d147ff3ab37351439a92d840 # 0.34.2
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# See https://github.com/actions/checkout#usage
#
# Default: `1`
fetch-depth: "1"
# Whether to download Git-LFS files.
# See https://github.com/actions/checkout#usage
#
# Default: `false`
lfs: "false"
# Whether to persist the token credentials in the Git config.
# Default to false for security reasons.
# See https://github.com/orgs/community/discussions/179107.
#
# Default: `false`
persist-credentials: "false"
# Token to use for checking out the repository instead of the default GITHUB_TOKEN.
token: ""| Input | Description | Required | Default |
|---|---|---|---|
fetch-depth |
Number of commits to fetch. 0 indicates all history for all branches and tags. | false | 1 |
| See https://github.com/actions/checkout#usage | |||
lfs |
Whether to download Git-LFS files. | false | false |
| See https://github.com/actions/checkout#usage | |||
persist-credentials |
Whether to persist the token credentials in the Git config. | false | false |
| Default to false for security reasons. | |||
| See https://github.com/orgs/community/discussions/179107. | |||
token |
Token to use for checking out the repository instead of the default GITHUB_TOKEN. | false | - |
Contributions are welcome! Please see the contributing guidelines for more details.
This project is licensed under the MIT License.
SPDX-License-Identifier: MIT
Copyright © 2026 hoverkraft
For more details, see the license.
This documentation was automatically generated by CI Dokumentor.