@aikidosec/safe-chain 1.3.0 → 1.3.2

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 CHANGED
@@ -35,15 +35,31 @@ Installing the Aikido Safe Chain is easy with our one-line installer.
35
35
  ### Unix/Linux/macOS
36
36
 
37
37
  ```shell
38
- curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh
38
+ curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh
39
39
  ```
40
40
 
41
41
  ### Windows (PowerShell)
42
42
 
43
43
  ```powershell
44
- iex (iwr "https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.ps1" -UseBasicParsing)
44
+ iex (iwr "https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.ps1" -UseBasicParsing)
45
45
  ```
46
46
 
47
+ ### Pinning to a specific version
48
+
49
+ To install a specific version instead of the latest, replace `latest` with the version number in the URL (available from version 1.3.2 onwards):
50
+
51
+ **Unix/Linux/macOS:**
52
+ ```shell
53
+ curl -fsSL https://github.com/AikidoSec/safe-chain/releases/download/x.x.x/install-safe-chain.sh | sh
54
+ ```
55
+
56
+ **Windows (PowerShell):**
57
+ ```powershell
58
+ iex (iwr "https://github.com/AikidoSec/safe-chain/releases/download/x.x.x/install-safe-chain.ps1" -UseBasicParsing)
59
+ ```
60
+
61
+ You can find all available versions on the [releases page](https://github.com/AikidoSec/safe-chain/releases).
62
+
47
63
  ### Verify the installation
48
64
 
49
65
  1. **❗Restart your terminal** to start using the Aikido Safe Chain.
@@ -105,13 +121,13 @@ To uninstall the Aikido Safe Chain, use our one-line uninstaller:
105
121
  ### Unix/Linux/macOS
106
122
 
107
123
  ```shell
108
- curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/uninstall-safe-chain.sh | sh
124
+ curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/uninstall-safe-chain.sh | sh
109
125
  ```
110
126
 
111
127
  ### Windows (PowerShell)
112
128
 
113
129
  ```powershell
114
- iex (iwr "https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/uninstall-safe-chain.ps1" -UseBasicParsing)
130
+ iex (iwr "https://github.com/AikidoSec/safe-chain/releases/latest/download/uninstall-safe-chain.ps1" -UseBasicParsing)
115
131
  ```
116
132
 
117
133
  **❗Restart your terminal** after uninstalling to ensure all aliases are removed.
@@ -178,13 +194,13 @@ Use the `--ci` flag to automatically configure Aikido Safe Chain for CI/CD envir
178
194
  ### Unix/Linux/macOS (GitHub Actions, Azure Pipelines, etc.)
179
195
 
180
196
  ```shell
181
- curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
197
+ curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
182
198
  ```
183
199
 
184
200
  ### Windows (Azure Pipelines, etc.)
185
201
 
186
202
  ```powershell
187
- iex "& { $(iwr 'https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.ps1' -UseBasicParsing) } -ci"
203
+ iex "& { $(iwr 'https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.ps1' -UseBasicParsing) } -ci"
188
204
  ```
189
205
 
190
206
  ## Supported Platforms
@@ -202,7 +218,7 @@ iex "& { $(iwr 'https://raw.githubusercontent.com/AikidoSec/safe-chain/main/inst
202
218
  cache: "npm"
203
219
 
204
220
  - name: Install safe-chain
205
- run: curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
221
+ run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
206
222
 
207
223
  - name: Install dependencies
208
224
  run: npm ci
@@ -216,7 +232,7 @@ iex "& { $(iwr 'https://raw.githubusercontent.com/AikidoSec/safe-chain/main/inst
216
232
  versionSpec: "22.x"
217
233
  displayName: "Install Node.js"
218
234
 
219
- - script: curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
235
+ - script: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
220
236
  displayName: "Install safe-chain"
221
237
 
222
238
  - script: npm ci
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikidosec/safe-chain",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "scripts": {
5
5
  "test": "node --test --experimental-test-module-mocks 'src/**/*.spec.js'",
6
6
  "test:watch": "node --test --watch --experimental-test-module-mocks 'src/**/*.spec.js'",
@@ -1,3 +1,5 @@
1
+ import { ui } from "../environment/userInteraction.js";
2
+
1
3
  /**
2
4
  * @type {{loggingLevel: string | undefined, skipMinimumPackageAge: boolean | undefined, minimumPackageAgeHours: string | undefined}}
3
5
  */
@@ -33,7 +35,7 @@ export function initializeCliArguments(args) {
33
35
  setLoggingLevel(safeChainArgs);
34
36
  setSkipMinimumPackageAge(safeChainArgs);
35
37
  setMinimumPackageAgeHours(safeChainArgs);
36
-
38
+ checkDeprecatedPythonFlag(args);
37
39
  return remainingArgs;
38
40
  }
39
41
 
@@ -120,3 +122,17 @@ function hasFlagArg(args, flagName) {
120
122
  }
121
123
  return false;
122
124
  }
125
+
126
+ /**
127
+ * Emits a deprecation warning for legacy --include-python flag
128
+ *
129
+ * @param {string[]} args
130
+ * @returns {void}
131
+ */
132
+ export function checkDeprecatedPythonFlag(args) {
133
+ if (hasFlagArg(args, "--include-python")) {
134
+ ui.writeWarning(
135
+ "--include-python is deprecated and ignored. Python tooling is included by default."
136
+ );
137
+ }
138
+ }