diff --git a/action-a/Dockerfile b/action-a/Dockerfile new file mode 100644 index 0000000..44e85cb --- /dev/null +++ b/action-a/Dockerfile @@ -0,0 +1,5 @@ +FROM debian:9.5-slim + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/action-a/Stoop Id b/action-a/Stoop Id new file mode 100644 index 0000000..a105526 --- /dev/null +++ b/action-a/Stoop Id @@ -0,0 +1,19 @@ +#define MESSAGE (const unsigned char *) "Message" +#define MESSAGE_LEN 7 +#define CIPHERTEXT_LEN (crypto_box_SEALBYTES + MESSAGE_LEN) + +/* Recipient creates a long-term key pair */ +unsigned char recipient_pk[crypto_box_PUBLICKEYBYTES]; +unsigned char recipient_sk[crypto_box_SECRETKEYBYTES]; +crypto_box_keypair(recipient_pk, recipient_sk); + +/* Anonymous sender encrypts a message using an ephemeral key pair + * and the recipient's public key */ +unsigned char ciphertext[CIPHERTEXT_LEN]; +crypto_box_seal(ciphertext, MESSAGE, MESSAGE_LEN, recipient_pk); + +/* Recipient decrypts the ciphertext */ +unsigned char decrypted[MESSAGE_LEN]; +if (crypto_box_seal_open(decrypted, ciphertext, CIPHERTEXT_LEN, + recipient_pk, recipient_sk) != 0) { + /* message corrupted or not intended for this recipient */ diff --git a/action-a/action.yml b/action-a/action.yml new file mode 100644 index 0000000..377c3ba --- /dev/null +++ b/action-a/action.yml @@ -0,0 +1,40 @@ +action.yml file: + +name: "Hello Actions" +description: "Greet someone" +author: JoeyB26 + +inputs: + MY_NAME: + description: "Who to greet" + required: true + default: "World" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple" +Stage and commit the changes + +Push the changes to GitHub + + +inputs: + MY_NAME: + description: "Who to greet" + required: true + default: "World" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple" +Stage and commit the changes + +Push the changes to GitHub diff --git a/action-a/action1.yml b/action-a/action1.yml new file mode 100644 index 0000000..3438607 --- /dev/null +++ b/action-a/action1.yml @@ -0,0 +1,17 @@ +name: "Hello Actions" +description: "Greet someone" +author: "octocat@github.com" + +inputs: + MY_NAME: + description: "Who to greet" + required: true + default: "World" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple" diff --git a/action-a/action2.yml b/action-a/action2.yml new file mode 100644 index 0000000..3438607 --- /dev/null +++ b/action-a/action2.yml @@ -0,0 +1,17 @@ +name: "Hello Actions" +description: "Greet someone" +author: "octocat@github.com" + +inputs: + MY_NAME: + description: "Who to greet" + required: true + default: "World" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple" diff --git a/action-a/entrypoint.sh b/action-a/entrypoint.sh new file mode 100644 index 0000000..7d3abef --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Hello world my name is $INPUT_MY_NAME" diff --git a/action-a/entrypoint1.sh b/action-a/entrypoint1.sh new file mode 100644 index 0000000..905ea13 --- /dev/null +++ b/action-a/entrypoint1.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Hello world my name is $JosephBenjaminThomas"