Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add persist-credentials for checkout action with default false #37

Merged
merged 1 commit into from May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions action.yml
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down