mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-26 21:22:47 +02:00
* Add set-safe-directory input to allow customers to take control.
This commit is contained in:
parent
f25a3a9f25
commit
f67ee5d622
11 changed files with 144 additions and 32 deletions
|
@ -777,7 +777,8 @@ async function setup(testName: string): Promise<void> {
|
|||
sshKey: sshPath ? 'some ssh private key' : '',
|
||||
sshKnownHosts: '',
|
||||
sshStrict: true,
|
||||
workflowOrganizationId: 123456
|
||||
workflowOrganizationId: 123456,
|
||||
setSafeDirectory: true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -85,6 +85,7 @@ describe('input-helper tests', () => {
|
|||
expect(settings.repositoryName).toBe('some-repo')
|
||||
expect(settings.repositoryOwner).toBe('some-owner')
|
||||
expect(settings.repositoryPath).toBe(gitHubWorkspace)
|
||||
expect(settings.setSafeDirectory).toBe(true)
|
||||
})
|
||||
|
||||
it('qualifies ref', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue