@aikidosec/ci-api-client 1.0.10 → 1.0.14
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.
- package/.github/workflows/build-and-release.yml +3 -3
- package/lib/commands/apiKey.js +1 -1
- package/lib/commands/scan.js +1 -1
- package/lib/commands/scanRelease.js +1 -1
- package/lib/index.js +1 -1
- package/npm-shrinkwrap.json +1270 -0
- package/package.json +23 -20
- package/src/commands/apiKey.ts +1 -1
- package/src/commands/scan.ts +1 -1
- package/src/commands/scanRelease.ts +1 -1
- package/src/index.ts +1 -1
|
@@ -17,13 +17,13 @@ jobs:
|
|
|
17
17
|
node-version: "20.x"
|
|
18
18
|
registry-url: "https://registry.npmjs.org"
|
|
19
19
|
scope: "@aikidosec"
|
|
20
|
-
cache: '
|
|
20
|
+
cache: 'npm'
|
|
21
21
|
|
|
22
22
|
- name: Install dependencies
|
|
23
|
-
run:
|
|
23
|
+
run: npm ci
|
|
24
24
|
|
|
25
25
|
- name: Build the library
|
|
26
|
-
run:
|
|
26
|
+
run: npm run build
|
|
27
27
|
|
|
28
28
|
- name: Get the version
|
|
29
29
|
id: get_version
|
package/lib/commands/apiKey.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Argument } from 'commander';
|
|
2
2
|
import { setApiKey } from '../configuration.js';
|
|
3
3
|
import { outputError, outputLog } from '../output.js';
|
|
4
|
-
const API_KEY_REGEX = /^AIK_CI_[
|
|
4
|
+
const API_KEY_REGEX = /^(?:AIK_CI_|AIK_CI_US_|AIK_CI_ME_)[A-Za-z0-9]{64}$/;
|
|
5
5
|
function cli(apiKey) {
|
|
6
6
|
const isValidApiKey = API_KEY_REGEX.test(apiKey) || apiKey.trim().length === 128;
|
|
7
7
|
if (apiKey && !isValidApiKey) {
|
package/lib/commands/scan.js
CHANGED
|
@@ -118,7 +118,7 @@ export const scan = async ({ repoId, baseCommitId, headCommitId, branchName, opt
|
|
|
118
118
|
pollStatus();
|
|
119
119
|
};
|
|
120
120
|
const parseCliOptions = (userCliOptions) => {
|
|
121
|
-
const apiOptions = { version: '1.0.
|
|
121
|
+
const apiOptions = { version: '1.0.11' };
|
|
122
122
|
const cliOptions = { pollInterval: 5 };
|
|
123
123
|
if (userCliOptions.pullRequestTitle) {
|
|
124
124
|
apiOptions.pull_request_metadata = {
|
|
@@ -120,7 +120,7 @@ export const scan = async ({ repoId, commitId, options, pollInterval = 10, onSta
|
|
|
120
120
|
pollStatus();
|
|
121
121
|
};
|
|
122
122
|
const parseCliOptions = (userCliOptions) => {
|
|
123
|
-
const apiOptions = { version: '1.0.
|
|
123
|
+
const apiOptions = { version: '1.0.11' };
|
|
124
124
|
const cliOptions = { pollInterval: 10 };
|
|
125
125
|
if (userCliOptions.pullRequestTitle) {
|
|
126
126
|
apiOptions.pull_request_metadata = {
|
package/lib/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export const program = new Command();
|
|
|
11
11
|
program
|
|
12
12
|
.name('Aikido API Client')
|
|
13
13
|
.description('CLI api client to easily integrate the Aikido public CI API into custom deploy scripts')
|
|
14
|
-
.version('1.0.
|
|
14
|
+
.version('1.0.12');
|
|
15
15
|
apiKey.cliSetup(program);
|
|
16
16
|
scan.cliSetup(program);
|
|
17
17
|
scanRelease.cliSetup(program);
|