Files
checkout/action.yml
Filias Heidt 624a3de49c change shell
2025-02-18 17:00:40 +01:00

27 lines
1.1 KiB
YAML

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 }}
server:
description: 'GIT Server to clone from'
default: git.netzkommune.de
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 }}
runs:
using: "composite"
steps:
- id: checkout-repo
shell: sh
run: |
git clone https://${GITHUB_ACTOR}:${{ inputs.token }}@${{ inputs.server }}/${{ inputs.repository}}