gh-secrets-sync 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +2 -1
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -9,7 +9,7 @@ import Spinner from 'yocto-spinner';
9
9
  import sodium from 'libsodium-wrappers';
10
10
 
11
11
  const name = "gh-secrets-sync";
12
- const version = "0.0.1";
12
+ const version = "0.0.2";
13
13
 
14
14
  const DEFAULT_SYNC_OPTIONS = {
15
15
  config: "./secrets.config.yaml",
@@ -96,6 +96,7 @@ async function createOrUpdateRepoSecret(secretName, secretValue, publicKey, repo
96
96
  const octokit = new Octokit({
97
97
  auth: formatToken(config.token)
98
98
  });
99
+ secretName = `${config.envPrefix}${secretName}`;
99
100
  const spinner = Spinner({ text: c.blue(`Create or update ${secretName} for ${repoPath}`) }).start();
100
101
  const { owner, repo } = parseRepo(repoPath);
101
102
  const url = `PUT /repos/${owner}/${repo}/actions/secrets/${secretName}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gh-secrets-sync",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "CLI tool to batch sync GitHub Actions secrets across multiple repositories.",
6
6
  "author": "jinghaihan",
7
7
  "license": "MIT",