From 734e81d98b4db0b8d5635e2e538a6338c98d46ad Mon Sep 17 00:00:00 2001 From: gliech Date: Sun, 16 Aug 2020 23:02:38 +0000 Subject: [PATCH] chore(release): 1.1.0 # [1.1.0](https://github.com/gliech/create-github-secret-action/compare/v1.0.0...v1.1.0) (2020-08-16) ### Features * basic info logging ([80c6579](https://github.com/gliech/create-github-secret-action/commit/80c65791e021e1d089c19b53b6785c12bb06da84)) --- dist/index.js | 3 +++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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",