snyk 1.914.0 → 1.915.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.
- package/README.md +39 -1
- package/config.default.json +0 -1
- package/dist/cli/784.index.js +19 -1
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/code-config.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Use [GitHub Releases](https://github.com/snyk/snyk/releases) to download a stand
|
|
|
61
61
|
|
|
62
62
|
We also provide these standalone executables on our official CDN. See [the `release.json` file](https://static.snyk.io/cli/latest/release.json) for the download links:
|
|
63
63
|
|
|
64
|
-
```
|
|
64
|
+
```text
|
|
65
65
|
https://static.snyk.io/cli/latest/release.json
|
|
66
66
|
|
|
67
67
|
# Or for specific version or platform
|
|
@@ -87,6 +87,44 @@ You can also use these direct links to download the executables:
|
|
|
87
87
|
|
|
88
88
|
Drawback of this method is, that you will have to manually keep the Snyk CLI up to date.
|
|
89
89
|
|
|
90
|
+
#### Verifying standalone binaries
|
|
91
|
+
|
|
92
|
+
You can verify both shasum of downloaded binaries and their GPG signatures.
|
|
93
|
+
|
|
94
|
+
Download location on `static.snyk.io` contains a file called `sha256sums.txt.asc`.
|
|
95
|
+
You can download it directly `https://static.snyk.io/cli/latest/sha256sums.txt.asc` or for a specific version like `https://static.snyk.io/cli/v1.666.0/sha256sums.txt.asc`.
|
|
96
|
+
|
|
97
|
+
To check that a downloaded file matches the checksum, use a `sha256sum` command like so:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
grep snyk-macos sha256sums.txt.asc | sha256sum -c -
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
If you want to verify Snyk CLI standalone binaries against [Snyk CLI GPG key](help/_about-this-project/snyk-code-signing-public.pgp), you will need to import it first:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# 68BFBCCEB7794E6FC06A2044A29C32E91F4B9569 is the key belonging to code-signing@snyk.io
|
|
107
|
+
# Copy of this public key is also in this repository /help/_about-this-project/snyk-code-signing-public.pgp
|
|
108
|
+
gpg --keyserver hkps://keys.openpgp.org --recv-keys 68BFBCCEB7794E6FC06A2044A29C32E91F4B9569
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Then verify the file is signed with:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
gpg --verify sha256sums.txt.asc
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Command output should look like:
|
|
118
|
+
|
|
119
|
+
```plain
|
|
120
|
+
gpg: Signature made Mon Apr 25 16:55:01 2022 CEST
|
|
121
|
+
gpg: using RSA key 68BFBCCEB7794E6FC06A2044A29C32E91F4B9569
|
|
122
|
+
gpg: Good signature from "Snyk Limited <code-signing@snyk.io>" [unknown]
|
|
123
|
+
gpg: WARNING: This key is not certified with a trusted signature!
|
|
124
|
+
gpg: There is no indication that the signature belongs to the owner.
|
|
125
|
+
Primary key fingerprint: 68BF BCCE B779 4E6F C06A 2044 A29C 32E9 1F4B 9569
|
|
126
|
+
```
|
|
127
|
+
|
|
90
128
|
</details>
|
|
91
129
|
|
|
92
130
|
<details>
|
package/config.default.json
CHANGED
package/dist/cli/784.index.js
CHANGED
|
@@ -491,6 +491,23 @@ class JsonTestCommandResult extends TestCommandResult {
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
|
|
494
|
+
/***/ }),
|
|
495
|
+
|
|
496
|
+
/***/ 55203:
|
|
497
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
498
|
+
|
|
499
|
+
"use strict";
|
|
500
|
+
|
|
501
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
502
|
+
exports.getCodeClientProxyUrl = void 0;
|
|
503
|
+
const config_1 = __webpack_require__(22541);
|
|
504
|
+
function getCodeClientProxyUrl() {
|
|
505
|
+
return (config_1.default.CODE_CLIENT_PROXY_URL ||
|
|
506
|
+
config_1.default.API.replace(/snyk\.io.*/, 'snyk.io').replace(/\/\/(app\.)?/, '//deeproxy.'));
|
|
507
|
+
}
|
|
508
|
+
exports.getCodeClientProxyUrl = getCodeClientProxyUrl;
|
|
509
|
+
|
|
510
|
+
|
|
494
511
|
/***/ }),
|
|
495
512
|
|
|
496
513
|
/***/ 65623:
|
|
@@ -4951,6 +4968,7 @@ const proxy_from_env_1 = __webpack_require__(21394);
|
|
|
4951
4968
|
const global_agent_1 = __webpack_require__(97959);
|
|
4952
4969
|
const chalk_1 = __webpack_require__(32589);
|
|
4953
4970
|
const debugLib = __webpack_require__(15158);
|
|
4971
|
+
const code_config_1 = __webpack_require__(55203);
|
|
4954
4972
|
const debug = debugLib('snyk-code');
|
|
4955
4973
|
async function getCodeAnalysisAndParseResults(root, options, sastSettings, requestId) {
|
|
4956
4974
|
await spinner_1.spinner.clearAll();
|
|
@@ -4969,7 +4987,7 @@ async function getCodeAnalysis(root, options, sastSettings, requestId) {
|
|
|
4969
4987
|
const source = 'snyk-cli';
|
|
4970
4988
|
const baseURL = isLocalCodeEngineEnabled
|
|
4971
4989
|
? sastSettings.localCodeEngine.url
|
|
4972
|
-
:
|
|
4990
|
+
: code_config_1.getCodeClientProxyUrl();
|
|
4973
4991
|
// TODO(james) This mirrors the implementation in request.ts and we need to use this for deeproxy calls
|
|
4974
4992
|
// This ensures we support lowercase http(s)_proxy values as well
|
|
4975
4993
|
// The weird IF around it ensures we don't create an envvar with
|