Skip to content

Commit

Permalink
Fix the cleanup of local secret file
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jun 13, 2024
1 parent c08dc49 commit 658566e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ class LocalSecretsProvider implements SecretsProvider, Closeable {
// make sure the file can only be accessed by the owner user
path.setPermissions(ONLY_OWNER_PERMS)
path.text = result
// remove it on completion
path.toFile().deleteOnExit()
// return the temp path
return path
}
}

0 comments on commit 658566e

Please sign in to comment.