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

* make private-key and public-key required

This commit is contained in:
shimataro 2019-12-30 08:34:10 +09:00
parent d272d00fdd
commit cd71a70913
No known key found for this signature in database
GPG key ID: BE92C05736911A9D
3 changed files with 13 additions and 5 deletions

View file

@ -19,7 +19,9 @@ function main() {
const files = [
{
name: name,
contents: core.getInput("private-key"),
contents: core.getInput("private-key", {
required: true,
}),
options: {
mode: 0o400,
flag: "ax",
@ -27,7 +29,9 @@ function main() {
},
{
name: `${name}.pub`,
contents: core.getInput("public-key"),
contents: core.getInput("public-key", {
required: true,
}),
options: {
mode: 0o444,
flag: "ax",