pr-checkmate 3.1.0 → 3.2.1

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.
@@ -369,6 +369,13 @@ export interface PRCheckMateConfig {
369
369
  * can never stall a commit.
370
370
  */
371
371
  timeoutMs?: number;
372
+ /**
373
+ * Overrides applied only on a CI build (see `isCiEnvironment`). Any key set here wins
374
+ * over the top-level value, so CI can keep the scan while local runs turn it off.
375
+ */
376
+ ci?: GrypeScanEnvOverrides;
377
+ /** Same as `ci`, applied only outside CI (a developer's machine, `be-commit`, hooks). */
378
+ local?: GrypeScanEnvOverrides;
372
379
  };
373
380
  bannedImports?: Array<{
374
381
  name: string;
@@ -430,3 +437,10 @@ export interface PRCheckMateConfig {
430
437
  }
431
438
  export type { CheckStatus, CheckResult } from '../utils/result-collector.js';
432
439
  export type { Language } from '../utils/detect-language.js';
440
+ /** Per-environment overrides for `grypeScan`: the subset of its settings that may differ by environment. */
441
+ export interface GrypeScanEnvOverrides {
442
+ enabled?: boolean;
443
+ minSeverity?: 'negligible' | 'low' | 'medium' | 'high' | 'critical';
444
+ ignore?: string[];
445
+ timeoutMs?: number;
446
+ }
@@ -69,9 +69,6 @@
69
69
  "cpu": [
70
70
  "arm64"
71
71
  ],
72
- "libc": [
73
- "glibc"
74
- ],
75
72
  "license": "MIT",
76
73
  "optional": true,
77
74
  "os": [
@@ -85,9 +82,6 @@
85
82
  "cpu": [
86
83
  "arm64"
87
84
  ],
88
- "libc": [
89
- "musl"
90
- ],
91
85
  "license": "MIT",
92
86
  "optional": true,
93
87
  "os": [
@@ -101,9 +95,6 @@
101
95
  "cpu": [
102
96
  "x64"
103
97
  ],
104
- "libc": [
105
- "glibc"
106
- ],
107
98
  "license": "MIT",
108
99
  "optional": true,
109
100
  "os": [
@@ -117,9 +108,6 @@
117
108
  "cpu": [
118
109
  "x64"
119
110
  ],
120
- "libc": [
121
- "musl"
122
- ],
123
111
  "license": "MIT",
124
112
  "optional": true,
125
113
  "os": [
@@ -12,7 +12,7 @@
12
12
  "eslint": "10.11.0",
13
13
  "eslint-config-prettier": "10.1.8",
14
14
  "eslint-plugin-import-x": "4.17.1",
15
- "eslint-plugin-jsdoc": "64.5.4",
15
+ "eslint-plugin-jsdoc": "65.1.0",
16
16
  "eslint-plugin-prettier": "5.5.6",
17
17
  "eslint-plugin-sonarjs": "4.2.1",
18
18
  "@typescript-eslint/eslint-plugin": "8.70.1",
@@ -859,9 +859,6 @@
859
859
  "cpu": [
860
860
  "arm64"
861
861
  ],
862
- "libc": [
863
- "glibc"
864
- ],
865
862
  "license": "MIT",
866
863
  "optional": true,
867
864
  "os": [
@@ -878,9 +875,6 @@
878
875
  "cpu": [
879
876
  "arm64"
880
877
  ],
881
- "libc": [
882
- "musl"
883
- ],
884
878
  "license": "MIT",
885
879
  "optional": true,
886
880
  "os": [
@@ -897,9 +891,6 @@
897
891
  "cpu": [
898
892
  "ppc64"
899
893
  ],
900
- "libc": [
901
- "glibc"
902
- ],
903
894
  "license": "MIT",
904
895
  "optional": true,
905
896
  "os": [
@@ -916,9 +907,6 @@
916
907
  "cpu": [
917
908
  "riscv64"
918
909
  ],
919
- "libc": [
920
- "glibc"
921
- ],
922
910
  "license": "MIT",
923
911
  "optional": true,
924
912
  "os": [
@@ -935,9 +923,6 @@
935
923
  "cpu": [
936
924
  "riscv64"
937
925
  ],
938
- "libc": [
939
- "musl"
940
- ],
941
926
  "license": "MIT",
942
927
  "optional": true,
943
928
  "os": [
@@ -954,9 +939,6 @@
954
939
  "cpu": [
955
940
  "s390x"
956
941
  ],
957
- "libc": [
958
- "glibc"
959
- ],
960
942
  "license": "MIT",
961
943
  "optional": true,
962
944
  "os": [
@@ -973,9 +955,6 @@
973
955
  "cpu": [
974
956
  "x64"
975
957
  ],
976
- "libc": [
977
- "glibc"
978
- ],
979
958
  "license": "MIT",
980
959
  "optional": true,
981
960
  "os": [
@@ -992,9 +971,6 @@
992
971
  "cpu": [
993
972
  "x64"
994
973
  ],
995
- "libc": [
996
- "musl"
997
- ],
998
974
  "license": "MIT",
999
975
  "optional": true,
1000
976
  "os": [
@@ -2156,9 +2132,9 @@
2156
2132
  }
2157
2133
  },
2158
2134
  "node_modules/brace-expansion": {
2159
- "version": "5.0.9",
2160
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
2161
- "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
2135
+ "version": "5.0.12",
2136
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
2137
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
2162
2138
  "license": "MIT",
2163
2139
  "dependencies": {
2164
2140
  "balanced-match": "^4.0.2"
@@ -2608,14 +2584,14 @@
2608
2584
  }
2609
2585
  },
2610
2586
  "node_modules/eslint-plugin-jsdoc": {
2611
- "version": "64.5.4",
2612
- "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-64.5.4.tgz",
2613
- "integrity": "sha512-xfRhXPSSWT612muJ6XTvxuVJ8zYHv99qNgBqPVqF28aSqoy4s4XbSkrWXnYA2hl5ejC02yEpk6fqkj3BmJ6Xbg==",
2587
+ "version": "65.1.0",
2588
+ "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-65.1.0.tgz",
2589
+ "integrity": "sha512-P7levv6MorzYZ85Yy/UVOAY9FKxwU6NJ9+c02QPYhzoIVg007OCtMi+9na8Xkho64Bu89QguoLSxH78YSmy1Zg==",
2614
2590
  "license": "BSD-3-Clause",
2615
2591
  "dependencies": {
2616
2592
  "@es-joy/jsdoccomment": "~0.98.0",
2617
2593
  "@es-joy/resolve.exports": "1.2.0",
2618
- "@typescript-eslint/utils": "^8.70.0",
2594
+ "@typescript-eslint/utils": "^8.70.1",
2619
2595
  "are-docs-informative": "^0.1.1",
2620
2596
  "comment-parser": "1.4.9",
2621
2597
  "debug": "^4.4.3",
@@ -3126,9 +3102,9 @@
3126
3102
  "license": "MIT"
3127
3103
  },
3128
3104
  "node_modules/http-cache-semantics": {
3129
- "version": "4.2.0",
3130
- "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz",
3131
- "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==",
3105
+ "version": "4.3.0",
3106
+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz",
3107
+ "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==",
3132
3108
  "license": "BSD-2-Clause"
3133
3109
  },
3134
3110
  "node_modules/http-proxy-agent": {
@@ -3209,9 +3185,9 @@
3209
3185
  }
3210
3186
  },
3211
3187
  "node_modules/ip-address": {
3212
- "version": "10.3.1",
3213
- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.3.1.tgz",
3214
- "integrity": "sha512-1e9d3kb97NHJTIJDZW9rKqW2h6+dFa50Dy0fpPSMQp2ADje5gvKsXmdiK6dwY5t76TaTt5+P5N1Y/LoToIxP6g==",
3188
+ "version": "10.7.3",
3189
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.3.tgz",
3190
+ "integrity": "sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==",
3215
3191
  "license": "MIT",
3216
3192
  "engines": {
3217
3193
  "node": ">= 12"
@@ -5022,9 +4998,9 @@
5022
4998
  }
5023
4999
  },
5024
5000
  "node_modules/undici": {
5025
- "version": "6.28.0",
5026
- "resolved": "https://registry.npmjs.org/undici/-/undici-6.28.0.tgz",
5027
- "integrity": "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==",
5001
+ "version": "6.29.0",
5002
+ "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",
5003
+ "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",
5028
5004
  "license": "MIT",
5029
5005
  "engines": {
5030
5006
  "node": ">=18.17"
@@ -6,7 +6,7 @@
6
6
  "eslint": "10.11.0",
7
7
  "eslint-config-prettier": "10.1.8",
8
8
  "eslint-plugin-import-x": "4.17.1",
9
- "eslint-plugin-jsdoc": "64.5.4",
9
+ "eslint-plugin-jsdoc": "65.1.0",
10
10
  "eslint-plugin-prettier": "5.5.6",
11
11
  "eslint-plugin-sonarjs": "4.2.1",
12
12
  "@typescript-eslint/eslint-plugin": "8.70.1",