diff options
| author | Tingluo Huang <tingluohuang@github.com> | 2022-04-21 10:12:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 10:12:11 -0400 |
| commit | 013b3856ba9ad25709645c555998be6313f542b3 (patch) | |
| tree | 58f72d63e8dbe42f00aae96a6ba3140c11a41a81 /src/input-helper.ts | |
| parent | 47d502ed80d427575b8b4f55f7aaeb7572cfe5db (diff) | |
Add set-safe-directory input to allow customers to take control. (#770) (#776)
* Add set-safe-directory input to allow customers to take control.
Diffstat (limited to 'src/input-helper.ts')
| -rw-r--r-- | src/input-helper.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input-helper.ts b/src/input-helper.ts index 40e6de4..8c2f901 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -122,5 +122,8 @@ export async function getInputs(): Promise<IGitSourceSettings> { // Workflow organization ID result.workflowOrganizationId = await workflowContextHelper.getOrganizationId() + // Set safe.directory in git global config. + result.setSafeDirectory = + (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE' return result } |
