@aikidosec/ci-api-client 1.0.15 → 1.0.17

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/.env CHANGED
@@ -1,3 +1,4 @@
1
1
  AIKIDO_API=https://app.aikido.dev
2
2
  AIKIDO_US_API=https://app.us.aikido.dev
3
3
  AIKIDO_ME_API=https://app.me.aikido.dev
4
+ AIKIDO_AU_API=https://app.au.aikido.dev
@@ -9,7 +9,7 @@ permissions:
9
9
 
10
10
  jobs:
11
11
  build:
12
- runs-on: ubuntu-latest
12
+ runs-on: open-source-releaser
13
13
  permissions:
14
14
  contents: read
15
15
  id-token: write
@@ -18,13 +18,13 @@ jobs:
18
18
  - uses: actions/checkout@v4
19
19
  - uses: actions/setup-node@v4
20
20
  with:
21
- node-version: "22"
21
+ node-version: "22.14.0"
22
22
  registry-url: "https://registry.npmjs.org"
23
23
  scope: "@aikidosec"
24
24
  cache: 'npm'
25
25
 
26
26
  - name: Update npm
27
- run: npm install -g npm@11.10.0 # pinned to 11.10.0 to work around https://github.com/nodejs/node/issues/62425
27
+ run: npm install -g npm@11.15.0
28
28
 
29
29
  - name: Install dependencies
30
30
  run: npm ci
@@ -42,4 +42,4 @@ jobs:
42
42
  - name: Publish to NPM
43
43
  run: |
44
44
  echo "Publishing version ${{ steps.get_version.outputs.tag }} to NPM"
45
- npm publish --access public
45
+ npm stage publish --access public --verbose
package/README.md CHANGED
@@ -48,6 +48,7 @@ Options:
48
48
  --minimum-severity-level <level> Set the minimum severity level. Accepted options are: LOW, MEDIUM, HIGH and CRITICAL. (choices: "LOW", "MEDIUM",
49
49
  "HIGH", "CRITICAL")
50
50
  --poll-interval [interval] The poll interval when checking for an updated scan result (preset: 10)
51
+ --sla-mode Let Aikido only fail only on open issues that have gone out of SLA.
51
52
  -h, --help display help for command
52
53
  ```
53
54
 
@@ -129,10 +130,7 @@ If you are missing functionality in this cli tool, please feel free to add it. I
129
130
  # Other resources
130
131
 
131
132
  - [Aikido Official Website](https://aikido.dev)
132
- - [Aikido Github Actions Workflow](https://github.com/AikidoSec/github-actions-workflow)
133
- - [Aikido GitLab CI Integration](https://gitlab.com/aikido-security/gitlab-ci-integration)
134
- - [Aikido Bitbucket Pipe](https://bitbucket.org/aikido-production/bitbucket-pipe)
135
- - [Aikido Azure Pipelines](https://marketplace.visualstudio.com/items?itemName=AikidoSecurity.aikido-security-scanner)
133
+ - [Aikido Docs](https://help.aikido.dev/)
136
134
  - [Aikido on Twitter](https://twitter.com/AikidoSecurity)
137
135
 
138
136
 
package/lib/aikidoApi.js CHANGED
@@ -9,6 +9,9 @@ const getApiUrl = () => {
9
9
  if (apiKey.startsWith('AIK_CI_ME_')) {
10
10
  return process.env.AIKIDO_ME_API || 'https://app.me.aikido.dev';
11
11
  }
12
+ if (apiKey.startsWith('AIK_CI_AU_')) {
13
+ return process.env.AIKIDO_AU_API || 'https://app.au.aikido.dev';
14
+ }
12
15
  return process.env.AIKIDO_API || 'https://app.aikido.dev';
13
16
  };
14
17
  const getApiHeaders = () => ({
@@ -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.15' };
121
+ const apiOptions = { version: '1.0.16' };
122
122
  const cliOptions = { pollInterval: 5 };
123
123
  if (userCliOptions.pullRequestTitle) {
124
124
  apiOptions.pull_request_metadata = {
@@ -123,7 +123,7 @@ export const scan = async ({ repoId, commitId, options, pollInterval = 10, onSta
123
123
  pollStatus();
124
124
  };
125
125
  const parseCliOptions = (userCliOptions) => {
126
- const apiOptions = { version: '1.0.15' };
126
+ const apiOptions = { version: '1.0.16' };
127
127
  const cliOptions = { pollInterval: 10 };
128
128
  if (userCliOptions.pullRequestTitle) {
129
129
  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.15');
14
+ .version('1.0.16');
15
15
  apiKey.cliSetup(program);
16
16
  scan.cliSetup(program);
17
17
  scanRelease.cliSetup(program);
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@aikidosec/ci-api-client",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@aikidosec/ci-api-client",
9
- "version": "1.0.15",
9
+ "version": "1.0.17",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "axios": "1.8.3",
12
+ "axios": "1.16.1",
13
13
  "chalk": "5.3.0",
14
14
  "commander": "11.0.0",
15
15
  "configstore": "6.0.0",
@@ -143,6 +143,35 @@
143
143
  "node": ">=0.4.0"
144
144
  }
145
145
  },
146
+ "node_modules/agent-base": {
147
+ "version": "6.0.2",
148
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
149
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
150
+ "license": "MIT",
151
+ "dependencies": {
152
+ "debug": "4"
153
+ },
154
+ "engines": {
155
+ "node": ">= 6.0.0"
156
+ }
157
+ },
158
+ "node_modules/agent-base/node_modules/debug": {
159
+ "version": "4.4.3",
160
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
161
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
162
+ "license": "MIT",
163
+ "dependencies": {
164
+ "ms": "^2.1.3"
165
+ },
166
+ "engines": {
167
+ "node": ">=6.0"
168
+ },
169
+ "peerDependenciesMeta": {
170
+ "supports-color": {
171
+ "optional": true
172
+ }
173
+ }
174
+ },
146
175
  "node_modules/ansi-regex": {
147
176
  "version": "6.0.1",
148
177
  "license": "MIT",
@@ -172,17 +201,20 @@
172
201
  },
173
202
  "node_modules/asynckit": {
174
203
  "version": "0.4.0",
204
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
205
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
175
206
  "license": "MIT"
176
207
  },
177
208
  "node_modules/axios": {
178
- "version": "1.8.3",
179
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz",
180
- "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==",
209
+ "version": "1.16.1",
210
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.16.1.tgz",
211
+ "integrity": "sha512-caYkukvroVPO8KrzuJEb50Hm07KwfBZPEC3VeFHTsqWHvKTsy54hjJz9BS/cdaypROE2rH6xvm9mHX4fgWkr3A==",
181
212
  "license": "MIT",
182
213
  "dependencies": {
183
- "follow-redirects": "^1.15.6",
184
- "form-data": "^4.0.0",
185
- "proxy-from-env": "^1.1.0"
214
+ "follow-redirects": "^1.16.0",
215
+ "form-data": "^4.0.5",
216
+ "https-proxy-agent": "^5.0.1",
217
+ "proxy-from-env": "^2.1.0"
186
218
  }
187
219
  },
188
220
  "node_modules/balanced-match": {
@@ -348,6 +380,8 @@
348
380
  },
349
381
  "node_modules/combined-stream": {
350
382
  "version": "1.0.8",
383
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
384
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
351
385
  "license": "MIT",
352
386
  "dependencies": {
353
387
  "delayed-stream": "~1.0.0"
@@ -423,6 +457,8 @@
423
457
  },
424
458
  "node_modules/delayed-stream": {
425
459
  "version": "1.0.0",
460
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
461
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
426
462
  "license": "MIT",
427
463
  "engines": {
428
464
  "node": ">=0.4.0"
@@ -492,9 +528,9 @@
492
528
  }
493
529
  },
494
530
  "node_modules/es-object-atoms": {
495
- "version": "1.1.1",
496
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
497
- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
531
+ "version": "1.1.2",
532
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
533
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
498
534
  "license": "MIT",
499
535
  "dependencies": {
500
536
  "es-errors": "^1.3.0"
@@ -530,7 +566,9 @@
530
566
  }
531
567
  },
532
568
  "node_modules/follow-redirects": {
533
- "version": "1.15.6",
569
+ "version": "1.16.0",
570
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
571
+ "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
534
572
  "funding": [
535
573
  {
536
574
  "type": "individual",
@@ -548,16 +586,16 @@
548
586
  }
549
587
  },
550
588
  "node_modules/form-data": {
551
- "version": "4.0.4",
552
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
553
- "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
589
+ "version": "4.0.6",
590
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",
591
+ "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
554
592
  "license": "MIT",
555
593
  "dependencies": {
556
594
  "asynckit": "^0.4.0",
557
595
  "combined-stream": "^1.0.8",
558
596
  "es-set-tostringtag": "^2.1.0",
559
- "hasown": "^2.0.2",
560
- "mime-types": "^2.1.12"
597
+ "hasown": "^2.0.4",
598
+ "mime-types": "^2.1.35"
561
599
  },
562
600
  "engines": {
563
601
  "node": ">= 6"
@@ -684,9 +722,9 @@
684
722
  }
685
723
  },
686
724
  "node_modules/hasown": {
687
- "version": "2.0.2",
688
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
689
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
725
+ "version": "2.0.4",
726
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
727
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
690
728
  "license": "MIT",
691
729
  "dependencies": {
692
730
  "function-bind": "^1.1.2"
@@ -695,6 +733,36 @@
695
733
  "node": ">= 0.4"
696
734
  }
697
735
  },
736
+ "node_modules/https-proxy-agent": {
737
+ "version": "5.0.1",
738
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
739
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
740
+ "license": "MIT",
741
+ "dependencies": {
742
+ "agent-base": "6",
743
+ "debug": "4"
744
+ },
745
+ "engines": {
746
+ "node": ">= 6"
747
+ }
748
+ },
749
+ "node_modules/https-proxy-agent/node_modules/debug": {
750
+ "version": "4.4.3",
751
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
752
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
753
+ "license": "MIT",
754
+ "dependencies": {
755
+ "ms": "^2.1.3"
756
+ },
757
+ "engines": {
758
+ "node": ">=6.0"
759
+ },
760
+ "peerDependenciesMeta": {
761
+ "supports-color": {
762
+ "optional": true
763
+ }
764
+ }
765
+ },
698
766
  "node_modules/ieee754": {
699
767
  "version": "1.2.1",
700
768
  "funding": [
@@ -828,6 +896,8 @@
828
896
  },
829
897
  "node_modules/mime-db": {
830
898
  "version": "1.52.0",
899
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
900
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
831
901
  "license": "MIT",
832
902
  "engines": {
833
903
  "node": ">= 0.6"
@@ -835,6 +905,8 @@
835
905
  },
836
906
  "node_modules/mime-types": {
837
907
  "version": "2.1.35",
908
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
909
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
838
910
  "license": "MIT",
839
911
  "dependencies": {
840
912
  "mime-db": "1.52.0"
@@ -863,7 +935,6 @@
863
935
  },
864
936
  "node_modules/ms": {
865
937
  "version": "2.1.3",
866
- "dev": true,
867
938
  "license": "MIT"
868
939
  },
869
940
  "node_modules/nodemon": {
@@ -972,8 +1043,13 @@
972
1043
  }
973
1044
  },
974
1045
  "node_modules/proxy-from-env": {
975
- "version": "1.1.0",
976
- "license": "MIT"
1046
+ "version": "2.1.0",
1047
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
1048
+ "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
1049
+ "license": "MIT",
1050
+ "engines": {
1051
+ "node": ">=10"
1052
+ }
977
1053
  },
978
1054
  "node_modules/pstree.remy": {
979
1055
  "version": "1.1.8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikidosec/ci-api-client",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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>",
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "axios": "1.8.3",
28
+ "axios": "1.16.1",
29
29
  "chalk": "5.3.0",
30
30
  "commander": "11.0.0",
31
31
  "configstore": "6.0.0",
package/src/aikidoApi.ts CHANGED
@@ -13,6 +13,10 @@ const getApiUrl = () => {
13
13
  return process.env.AIKIDO_ME_API || 'https://app.me.aikido.dev';
14
14
  }
15
15
 
16
+ if (apiKey.startsWith('AIK_CI_AU_')) {
17
+ return process.env.AIKIDO_AU_API || 'https://app.au.aikido.dev';
18
+ }
19
+
16
20
  return process.env.AIKIDO_API || 'https://app.aikido.dev';
17
21
  };
18
22
  const getApiHeaders = () => ({
@@ -245,7 +245,7 @@ export const scan = async ({
245
245
  const parseCliOptions = (userCliOptions: TScanUserCliOptions) => {
246
246
  // Version provided to the API corresponds with the version in package.json
247
247
  // of the cli client
248
- const apiOptions: TScanApiOptions = { version: '1.0.15' };
248
+ const apiOptions: TScanApiOptions = { version: '1.0.16' };
249
249
  const cliOptions: TScanCliOptions = { pollInterval: 5 };
250
250
 
251
251
  if (userCliOptions.pullRequestTitle) {
@@ -245,7 +245,7 @@ export const scan = async ({
245
245
  const parseCliOptions = (userCliOptions: TScanUserCliOptions) => {
246
246
  // Version provided to the API corresponds with the version in package.json
247
247
  // of the cli client
248
- const apiOptions: TScanApiOptions = { version: '1.0.15' };
248
+ const apiOptions: TScanApiOptions = { version: '1.0.16' };
249
249
  const cliOptions: TScanCliOptions = { pollInterval: 10 };
250
250
 
251
251
  if (userCliOptions.pullRequestTitle) {
package/src/index.ts CHANGED
@@ -20,7 +20,7 @@ program
20
20
  .description(
21
21
  'CLI api client to easily integrate the Aikido public CI API into custom deploy scripts'
22
22
  )
23
- .version('1.0.15');
23
+ .version('1.0.16');
24
24
 
25
25
  // Load in all app commands and set them up in the `program` instance
26
26
  apiKey.cliSetup(program);