@aikidosec/ci-api-client 1.0.2 → 1.0.3
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/.npmrc +0 -0
- package/lib/commands/scan.js +3 -0
- package/lib/index.js +1 -1
- package/package.json +5 -8
- package/src/commands/scan.ts +3 -0
- package/src/index.ts +1 -1
package/.npmrc
ADDED
|
File without changes
|
package/lib/commands/scan.js
CHANGED
|
@@ -29,6 +29,9 @@ async function cli(repoId, baseCommitId, headCommitId, branchName, options, comm
|
|
|
29
29
|
const onScanComplete = (pollResult) => {
|
|
30
30
|
if (pollResult.gate_passed === true) {
|
|
31
31
|
loader?.succeed('Scan completed, no new issues found');
|
|
32
|
+
if (pollResult.diff_url) {
|
|
33
|
+
outputLog(chalk.gray(`* Diff url: ${pollResult.diff_url}`));
|
|
34
|
+
}
|
|
32
35
|
}
|
|
33
36
|
else {
|
|
34
37
|
loader?.fail('Scan completed with issues');
|
package/lib/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export const program = new Command();
|
|
|
10
10
|
program
|
|
11
11
|
.name('Aikido API Client')
|
|
12
12
|
.description('CLI api client to easily integrate the Aikido public CI API into custom deploy scripts')
|
|
13
|
-
.version('1.0.
|
|
13
|
+
.version('1.0.3');
|
|
14
14
|
apiKey.cliSetup(program);
|
|
15
15
|
scan.cliSetup(program);
|
|
16
16
|
upload.cliSetup(program);
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aikidosec/ci-api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CLI api client to easily integrate the Aikido public CI API into custom deploy scripts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Bert Devriese <bert@builtinbruges.com>",
|
|
7
|
-
"private": false,
|
|
8
7
|
"type": "module",
|
|
9
8
|
"main": "lib/index.js",
|
|
10
9
|
"bin": {
|
|
@@ -19,10 +18,7 @@
|
|
|
19
18
|
"build": "tsc -p .",
|
|
20
19
|
"local": "yarn build && yarn global add file:$PWD; aikido-api-client",
|
|
21
20
|
"local-rm": "yarn global remove aikido-api-client",
|
|
22
|
-
"format": "prettier --write 'src/**/*.ts'"
|
|
23
|
-
"//": {
|
|
24
|
-
"refresh": "rm -rf ./node_modules ./yarn.lock && yarn"
|
|
25
|
-
}
|
|
21
|
+
"format": "prettier --write 'src/**/*.ts'"
|
|
26
22
|
},
|
|
27
23
|
"dependencies": {
|
|
28
24
|
"axios": "^1.4.0",
|
|
@@ -47,5 +43,6 @@
|
|
|
47
43
|
"aikido",
|
|
48
44
|
"security",
|
|
49
45
|
"cli"
|
|
50
|
-
]
|
|
51
|
-
|
|
46
|
+
],
|
|
47
|
+
"packageManager": "yarn@4.1.1"
|
|
48
|
+
}
|
package/src/commands/scan.ts
CHANGED
|
@@ -110,6 +110,9 @@ async function cli(
|
|
|
110
110
|
const onScanComplete = (pollResult: any) => {
|
|
111
111
|
if (pollResult.gate_passed === true) {
|
|
112
112
|
loader?.succeed('Scan completed, no new issues found');
|
|
113
|
+
if (pollResult.diff_url) {
|
|
114
|
+
outputLog(chalk.gray(`* Diff url: ${pollResult.diff_url}`));
|
|
115
|
+
}
|
|
113
116
|
} else {
|
|
114
117
|
loader?.fail('Scan completed with issues');
|
|
115
118
|
|
package/src/index.ts
CHANGED
|
@@ -19,7 +19,7 @@ program
|
|
|
19
19
|
.description(
|
|
20
20
|
'CLI api client to easily integrate the Aikido public CI API into custom deploy scripts'
|
|
21
21
|
)
|
|
22
|
-
.version('1.0.
|
|
22
|
+
.version('1.0.3');
|
|
23
23
|
|
|
24
24
|
// Load in all app commands and set them up in the `program` instance
|
|
25
25
|
apiKey.cliSetup(program);
|