diff --git a/dist/index.js b/dist/index.js index b5e81db..7ba2854 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12477,14 +12477,17 @@ async function run() { const context = github.context; // Retrieve repository public key and encrypt secret value + core.info("Retrieving repository public key") const { data: repo_public_key } = await octokit.actions.getRepoPublicKey(context.repo); + core.info("Encrypting secret value") const plain_value_bytes = Buffer.from(secret_value); const public_key_bytes = Buffer.from(repo_public_key.key, 'base64'); const secret_value_bytes = sodium.seal(plain_value_bytes, public_key_bytes); const signed_secret_value = Buffer.from(secret_value_bytes).toString('base64'); // Create or update secret + core.info("Updating repository secret") const { status } = await octokit.actions.createOrUpdateRepoSecret({ ...context.repo, secret_name: secret_name, diff --git a/package-lock.json b/package-lock.json index 0c66874..f7e67fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "create-github-secret-action", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a932db6..eb47d0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-github-secret-action", - "version": "1.0.0", + "version": "1.1.0", "private": "true", "description": "Create or update a Github Secret", "main": "dist/index.js",