From f0414a835106963f1ca1ce41d7eda078f309bc0b Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Tue, 10 May 2022 09:29:43 +0200 Subject: [PATCH] Add persist-credentials for checkout action with default false --- README.md | 10 +++++----- action.yml | 7 +++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d28cd21..31f41c3 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ or use automatic tools like [Dependabot](https://docs.github.com/en/code-securit ## checkout -| params | destination | -|----------------------|-------------| -| checkout-fetch-depth | fetch-depth | -| checkout-path | path | - +| params | destination | default | +|------------------------------|---------------------|---------| +| checkout-fetch-depth | fetch-depth | | +| checkout-path | path | | +| checkout-persist-credentials | persist-credentials | false | ## setup-java diff --git a/action.yml b/action.yml index 20977ba..2957ec8 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,12 @@ inputs: description: 'Relative path under $GITHUB_WORKSPACE to place the repository' required: false + checkout-persist-credentials: + description: 'Whether to configure the token or SSH key with the local git config' + default: 'false' + required: false + + # java jdk params java-version: @@ -73,6 +79,7 @@ runs: with: fetch-depth: '${{ inputs.checkout-fetch-depth }}' path: '${{ inputs.checkout-path }}' + persist-credentials: '${{ inputs.checkout-persist-credentials }}' - uses: actions/setup-java@v3 with: