Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions action-a/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM debian:9.5-slim

ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
19 changes: 19 additions & 0 deletions action-a/Stoop Id
Original file line number Diff line number Diff line change
@@ -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 */
40 changes: 40 additions & 0 deletions action-a/action.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions action-a/action1.yml
Original file line number Diff line number Diff line change
@@ -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"
17 changes: 17 additions & 0 deletions action-a/action2.yml
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 3 additions & 0 deletions action-a/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh -l

sh -c "echo Hello world my name is $INPUT_MY_NAME"
3 changes: 3 additions & 0 deletions action-a/entrypoint1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh -l

sh -c "echo Hello world my name is $JosephBenjaminThomas"