Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed Mar 11, 2020
1 parent 6dc9f9e commit 8e1d16e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Expand Up @@ -5241,6 +5241,7 @@ class GitAuthHelper {
// Remove inherited permissions on Windows
if (IS_WINDOWS) {
const icacls = yield io.which('icacls.exe');
yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`);
yield exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`);
}
// Write known hosts
Expand Down
1 change: 1 addition & 0 deletions src/git-auth-helper.ts
Expand Up @@ -186,6 +186,7 @@ class GitAuthHelper {
// Remove inherited permissions on Windows
if (IS_WINDOWS) {
const icacls = await io.which('icacls.exe')
await exec.exec(`"${icacls}" "${this.sshKeyPath}" /grant:r "${process.env['USERDOMAIN']}\\${process.env['USERNAME']}:F"`)
await exec.exec(`"${icacls}" "${this.sshKeyPath}" /inheritance:r`)
}

Expand Down

0 comments on commit 8e1d16e

Please sign in to comment.