checkout/action.yml

31 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2024-06-04 21:43:09 +10:00
name: 'Checkout'
description: 'Checkout a Git repository at a particular version'
inputs:
repository:
description: 'Repository name with owner. For example, actions/checkout'
default: ${{ github.repository }}
ref:
description: >
The branch, tag or SHA to checkout. When checking out the repository that
triggered a workflow, this defaults to the reference or SHA for that
event. Otherwise, uses the default branch.
2024-06-04 22:24:55 +10:00
default: ${{ github.ref }}
2024-06-04 21:52:32 +10:00
token:
description: >
Personal 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)
default: ${{ github.token }}
2024-06-04 22:24:55 +10:00
server:
default: ${{ github.server_url }}
2024-06-04 21:43:09 +10:00
runs:
using: 'docker'
2024-06-04 22:17:06 +10:00
image: 'docker://aburgess/checkout:latest'