diff --git a/action.yml b/action.yml index 3a78bd3..bfebe05 100644 --- a/action.yml +++ b/action.yml @@ -1,10 +1,5 @@ name: 'Initialize CI Environment and Repository' description: 'Initialize a CI environment with nix (and also checkout the repository recursively with LFS)' -inputs: - token: - description: 'OAUTH token to access repositories' - required: false - default: ${{ github.token }} runs: using: "composite" steps: @@ -20,6 +15,6 @@ runs: run: | git lfs install GIT_SERVER=`echo -n "$GITHUB_SERVER_URL" | sed "s%https://%%"` - echo -e "machine $GIT_SERVER\nlogin oauth2\npassword ${{ inputs.token }}" > ~/.netrc + echo -e "machine $GIT_SERVER\nlogin oauth2\npassword $GITHUB_TOKEN" > ~/.netrc # Disable clone protection to pull LFS as well GIT_CLONE_PROTECTION_ACTIVE=false git clone --branch $GITHUB_REF_NAME --recurse-submodules $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .