1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

* reject overwriting private-key and public-key

This commit is contained in:
shimataro 2019-12-29 18:59:49 +09:00
parent e6a98e275c
commit 0a0608cf1f
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
3 changed files with 5 additions and 1 deletions

View file

@ -22,6 +22,7 @@ function main() {
contents: core.getInput("private-key"),
options: {
mode: 0o400,
flag: "ax",
},
},
{
@ -29,6 +30,7 @@ function main() {
contents: core.getInput("public-key"),
options: {
mode: 0o444,
flag: "ax",
},
},
{