snyk 1.1124.0 → 1.1126.0

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.
@@ -2520,10 +2520,10 @@
2520
2520
  },
2521
2521
  {
2522
2522
  "name": "snyk-gradle-plugin",
2523
- "version": "3.26.0",
2523
+ "version": "3.26.1",
2524
2524
  "author": "snyk.io",
2525
2525
  "repository": "https://github.com/snyk/snyk-gradle-plugin",
2526
- "source": "https://registry.npmjs.org/snyk-gradle-plugin/-/snyk-gradle-plugin-3.26.0.tgz",
2526
+ "source": "https://registry.npmjs.org/snyk-gradle-plugin/-/snyk-gradle-plugin-3.26.1.tgz",
2527
2527
  "license": "Apache-2.0",
2528
2528
  "licenseText": "Copyright 2017 Snyk Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
2529
2529
  },
@@ -288,11 +288,12 @@ allprojects { Project currProj ->
288
288
  )
289
289
 
290
290
  task snykResolvedDepsJson {
291
-
292
291
  doLast { task ->
293
292
  if (snykDepsConfExecuted) {
294
293
  return
295
294
  }
295
+
296
+ snykDepsConfExecuted = true
296
297
  debugLog('snykResolvedDepsJson task is executing via doLast')
297
298
  // debugLog("onlyProj=$onlyProj; confNameFilter=$confNameFilter; confAttrSpec=$confAttrSpec")
298
299
  // First pass: scan all configurations that match the attribute filter and collect all attributes
@@ -383,7 +384,6 @@ allprojects { Project currProj ->
383
384
  ]
384
385
  def jsonDeps = JsonOutput.toJson(result)
385
386
  println("JSONDEPS $jsonDeps")
386
- snykDepsConfExecuted = true
387
387
  }
388
388
  }
389
389
 
@@ -393,6 +393,8 @@ allprojects { Project currProj ->
393
393
  if (snykDepsConfExecuted) {
394
394
  return
395
395
  }
396
+
397
+ snykDepsConfExecuted = true
396
398
  debugLog('snykNormalizedResolvedDepsJson task is executing via doLast')
397
399
  // debugLog("onlyProj=$onlyProj; confNameFilter=$confNameFilter; confAttrSpec=$confAttrSpec")
398
400
  // First pass: scan all configurations that match the attribute filter and collect all attributes
@@ -485,7 +487,6 @@ allprojects { Project currProj ->
485
487
 
486
488
  def jsonDeps = JsonOutput.toJson(result)
487
489
  println("JSONDEPS $jsonDeps")
488
- snykDepsConfExecuted = true
489
490
  }
490
491
  }
491
492
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snyk",
3
- "version": "1.1124.0",
3
+ "version": "1.1126.0",
4
4
  "description": "snyk library and cli utility",
5
5
  "files": [
6
6
  "*"
@@ -1,10 +1,10 @@
1
- 186d38ac68bb8903ccc47f50e42d1cd352ac6346c1ac1375aa9f9c7643ec7353 docker-mac-signed-bundle.tar.gz
2
- c1a29dbd4362bce0d6469a92949ebbf3dbac2a9a51ae051c7183b8f733196b3e snyk-alpine
3
- 11986648a2ccec5b40ea35f3604cb1d448a57269ca152760f346f6f006374609 snyk-fix.tgz
4
- 61f1fd3bb9b266b26acb226f0b21276a4e35a0174af2eeb32926b4603eab8656 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
- 65b4921545e8fb285ee9dd8a27263daaa45972bf693eb3a620f0f09e869c5d6c snyk-for-docker-desktop-darwin-x64.tar.gz
6
- 0b79dcca8f28cea1d329dccae449253eb1f25fc34046f93c0ab837f4a10f257b snyk-linux-arm64
7
- 280821caef2597ea4ec83235224a62ae5bd59e757c6fed53a600978ed68da108 snyk-linux
8
- addc3240329b6a7038fce4141ca244e83feb1db0e0a6bd03aae1af065b3d3a8e snyk-macos
9
- 01236ed2795d01c52e908bde427e3da526e8a6a59ebee3fc542a606feed9769f snyk-protect.tgz
10
- 772354868df6af753f70c414b77993d40310a596a2d147f457dd5a6d23ea5c36 snyk-win.exe
1
+ 4aa2f3d0196cf450e390f48b09ce05a6e47ec54087dfa507dd6f9f448ebbca28 docker-mac-signed-bundle.tar.gz
2
+ e42a63055a409d25a7d5c419fc5aa4160d57aeabe0fced9919ae328cd475fa9c snyk-alpine
3
+ a8406607b502fefd0eb6945f25232a0fd09206a03002d63978c5c213e21bc93a snyk-fix.tgz
4
+ 3e4ef35327f446e72d5c3785c728ef3678f7b75bbe5fd52ea0174104bf1d33f0 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
+ 884f03606b2dda14e1e3f7c68a351cd45526e58b1462de89daa476d6173542b3 snyk-for-docker-desktop-darwin-x64.tar.gz
6
+ 5536c1ae5e1e4ebcaa3101a81075cb506e6cf76714bd173cc3d0bde15028bd70 snyk-linux-arm64
7
+ b902f238e0ac0e0883d62f11fbd97d5fdcda2a5dcedce89f1f79389959002bb0 snyk-linux
8
+ 04aad4e327cf2f136964e1a50511c20fe713231d6ce2478e006dece2853d0079 snyk-macos
9
+ cd0c412594cb6dbab62b5bd1b021ee70890a82f77bd91d34d498ab7ae86c9ac1 snyk-protect.tgz
10
+ 708d98c6bed91f532d9f257260b19b71ca4e73eba90e64471bb20ccee3a05234 snyk-win.exe
@@ -1 +1 @@
1
- 1.1124.0
1
+ 1.1126.0
@@ -42,8 +42,16 @@ describe('Basic acceptance test', () => {
42
42
  'node ' + bootstrapScript + ' exec',
43
43
  { shell: true },
44
44
  );
45
- console.debug(resultBootstrap.stdout.toString());
46
- console.error(resultBootstrap.stderr.toString());
45
+
46
+ if (resultBootstrap.status != 0) {
47
+ console.debug(resultBootstrap.stdout.toString());
48
+ console.error(resultBootstrap.stderr.toString());
49
+ }
50
+
51
+ // The binary wrapper should not output anything to stdout
52
+ // as it will conflict with stdout from the CLI leading to incidents
53
+ expect(resultBootstrap.stdout.toString()).toEqual('');
54
+
47
55
  expect(resultBootstrap.status).toEqual(0);
48
56
  expect(fs.existsSync(executable)).toBeTruthy();
49
57
 
@@ -94,9 +102,14 @@ describe('Basic acceptance test', () => {
94
102
 
95
103
  expect(fs.existsSync(executable)).toBeTruthy();
96
104
  expect(resultIndex.status).toEqual(0);
105
+ // The binary wrapper should not output anything to stdout
106
+ // Assert the only stdout is from the CLI --version flag
97
107
  expect(
98
- resultIndex.stdout.toString().includes(cliVersionForTesting),
99
- ).toBeTruthy();
108
+ resultIndex.stdout
109
+ .toString()
110
+ .split(' ')[0]
111
+ .trim(),
112
+ ).toEqual(cliVersionForTesting);
100
113
 
101
114
  fs.unlinkSync(executable);
102
115
  });
@@ -197,8 +210,11 @@ describe('Basic acceptance test', () => {
197
210
  'node ' + bootstrapScript + ' exec',
198
211
  { shell: true, env: { ...process.env } },
199
212
  );
200
- console.debug(resultBootstrap.stdout.toString());
201
- console.error(resultBootstrap.stderr.toString());
213
+
214
+ if (resultBootstrap.status != 0) {
215
+ console.debug(resultBootstrap.stdout.toString());
216
+ console.error(resultBootstrap.stderr.toString());
217
+ }
202
218
 
203
219
  const expectedErrorMessage = 'ECONNREFUSED';
204
220
  const expectedError = resultBootstrap.stderr
@@ -1,10 +1,10 @@
1
- 186d38ac68bb8903ccc47f50e42d1cd352ac6346c1ac1375aa9f9c7643ec7353 docker-mac-signed-bundle.tar.gz
2
- c1a29dbd4362bce0d6469a92949ebbf3dbac2a9a51ae051c7183b8f733196b3e snyk-alpine
3
- 11986648a2ccec5b40ea35f3604cb1d448a57269ca152760f346f6f006374609 snyk-fix.tgz
4
- 61f1fd3bb9b266b26acb226f0b21276a4e35a0174af2eeb32926b4603eab8656 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
- 65b4921545e8fb285ee9dd8a27263daaa45972bf693eb3a620f0f09e869c5d6c snyk-for-docker-desktop-darwin-x64.tar.gz
6
- 0b79dcca8f28cea1d329dccae449253eb1f25fc34046f93c0ab837f4a10f257b snyk-linux-arm64
7
- 280821caef2597ea4ec83235224a62ae5bd59e757c6fed53a600978ed68da108 snyk-linux
8
- addc3240329b6a7038fce4141ca244e83feb1db0e0a6bd03aae1af065b3d3a8e snyk-macos
9
- 01236ed2795d01c52e908bde427e3da526e8a6a59ebee3fc542a606feed9769f snyk-protect.tgz
10
- 772354868df6af753f70c414b77993d40310a596a2d147f457dd5a6d23ea5c36 snyk-win.exe
1
+ 4aa2f3d0196cf450e390f48b09ce05a6e47ec54087dfa507dd6f9f448ebbca28 docker-mac-signed-bundle.tar.gz
2
+ e42a63055a409d25a7d5c419fc5aa4160d57aeabe0fced9919ae328cd475fa9c snyk-alpine
3
+ a8406607b502fefd0eb6945f25232a0fd09206a03002d63978c5c213e21bc93a snyk-fix.tgz
4
+ 3e4ef35327f446e72d5c3785c728ef3678f7b75bbe5fd52ea0174104bf1d33f0 snyk-for-docker-desktop-darwin-arm64.tar.gz
5
+ 884f03606b2dda14e1e3f7c68a351cd45526e58b1462de89daa476d6173542b3 snyk-for-docker-desktop-darwin-x64.tar.gz
6
+ 5536c1ae5e1e4ebcaa3101a81075cb506e6cf76714bd173cc3d0bde15028bd70 snyk-linux-arm64
7
+ b902f238e0ac0e0883d62f11fbd97d5fdcda2a5dcedce89f1f79389959002bb0 snyk-linux
8
+ 04aad4e327cf2f136964e1a50511c20fe713231d6ce2478e006dece2853d0079 snyk-macos
9
+ cd0c412594cb6dbab62b5bd1b021ee70890a82f77bd91d34d498ab7ae86c9ac1 snyk-protect.tgz
10
+ 708d98c6bed91f532d9f257260b19b71ca4e73eba90e64471bb20ccee3a05234 snyk-win.exe
@@ -1 +1 @@
1
- 1.1124.0
1
+ 1.1126.0