@salesforce/plugin-devops-center 2.1.0 → 2.1.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.
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ EXAMPLES
|
|
|
154
154
|
https://github.com/myorg/myrepo --stage Dev --stage QA --stage Prod
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
157
|
+
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/create.ts)_
|
|
158
158
|
|
|
159
159
|
## `sf devops pipeline get`
|
|
160
160
|
|
|
@@ -186,7 +186,7 @@ EXAMPLES
|
|
|
186
186
|
$ sf devops pipeline get --target-org my-devops-org --pipeline-id 0Do000000000001
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
_See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
189
|
+
_See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/get.ts)_
|
|
190
190
|
|
|
191
191
|
## `sf devops pipeline list`
|
|
192
192
|
|
|
@@ -217,7 +217,7 @@ EXAMPLES
|
|
|
217
217
|
$ sf devops pipeline list --target-org my-devops-org
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
_See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
220
|
+
_See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/list.ts)_
|
|
221
221
|
|
|
222
222
|
## `sf devops pipeline project add`
|
|
223
223
|
|
|
@@ -251,7 +251,7 @@ EXAMPLES
|
|
|
251
251
|
0Hn000000000001
|
|
252
252
|
```
|
|
253
253
|
|
|
254
|
-
_See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
254
|
+
_See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/project/add.ts)_
|
|
255
255
|
|
|
256
256
|
## `sf devops pipeline project delete`
|
|
257
257
|
|
|
@@ -285,7 +285,7 @@ EXAMPLES
|
|
|
285
285
|
0Hn000000000001
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
_See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
288
|
+
_See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/project/delete.ts)_
|
|
289
289
|
|
|
290
290
|
## `sf devops pipeline stage add`
|
|
291
291
|
|
|
@@ -326,7 +326,7 @@ EXAMPLES
|
|
|
326
326
|
--next-stage-id 0Xc000000000003
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
329
|
+
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/stage/add.ts)_
|
|
330
330
|
|
|
331
331
|
## `sf devops pipeline stage delete`
|
|
332
332
|
|
|
@@ -361,7 +361,7 @@ EXAMPLES
|
|
|
361
361
|
0Xc000000000002
|
|
362
362
|
```
|
|
363
363
|
|
|
364
|
-
_See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
364
|
+
_See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/stage/delete.ts)_
|
|
365
365
|
|
|
366
366
|
## `sf devops pipeline stage update`
|
|
367
367
|
|
|
@@ -394,7 +394,7 @@ EXAMPLES
|
|
|
394
394
|
$ sf devops pipeline stage update --target-org my-devops-org --stage-id 1QV000000000001 --name "Integration"
|
|
395
395
|
```
|
|
396
396
|
|
|
397
|
-
_See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
397
|
+
_See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/stage/update.ts)_
|
|
398
398
|
|
|
399
399
|
## `sf devops pipeline update`
|
|
400
400
|
|
|
@@ -438,7 +438,7 @@ EXAMPLES
|
|
|
438
438
|
Pipeline"
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
_See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
441
|
+
_See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/pipeline/update.ts)_
|
|
442
442
|
|
|
443
443
|
## `sf devops project create`
|
|
444
444
|
|
|
@@ -475,7 +475,7 @@ EXAMPLES
|
|
|
475
475
|
update"
|
|
476
476
|
```
|
|
477
477
|
|
|
478
|
-
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
478
|
+
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/project/create.ts)_
|
|
479
479
|
|
|
480
480
|
## `sf devops project list`
|
|
481
481
|
|
|
@@ -510,7 +510,7 @@ EXAMPLES
|
|
|
510
510
|
$ sf devops project list --target-org devops-center@example.com
|
|
511
511
|
```
|
|
512
512
|
|
|
513
|
-
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
513
|
+
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/project/list.ts)_
|
|
514
514
|
|
|
515
515
|
## `sf devops project update`
|
|
516
516
|
|
|
@@ -560,7 +560,7 @@ EXAMPLES
|
|
|
560
560
|
--description "Archived" --no-is-active
|
|
561
561
|
```
|
|
562
562
|
|
|
563
|
-
_See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
563
|
+
_See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/project/update.ts)_
|
|
564
564
|
|
|
565
565
|
## `sf devops promote`
|
|
566
566
|
|
|
@@ -660,7 +660,7 @@ FLAG DESCRIPTIONS
|
|
|
660
660
|
spaces.
|
|
661
661
|
```
|
|
662
662
|
|
|
663
|
-
_See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
663
|
+
_See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/promote.ts)_
|
|
664
664
|
|
|
665
665
|
## `sf devops promotion complete`
|
|
666
666
|
|
|
@@ -743,7 +743,7 @@ FLAG DESCRIPTIONS
|
|
|
743
743
|
spaces.
|
|
744
744
|
```
|
|
745
745
|
|
|
746
|
-
_See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
746
|
+
_See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/promotion/complete.ts)_
|
|
747
747
|
|
|
748
748
|
## `sf devops promotion validate`
|
|
749
749
|
|
|
@@ -784,7 +784,7 @@ EXAMPLES
|
|
|
784
784
|
1fk000000000001 --work-item-id 1fk000000000002
|
|
785
785
|
```
|
|
786
786
|
|
|
787
|
-
_See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
787
|
+
_See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/promotion/validate.ts)_
|
|
788
788
|
|
|
789
789
|
## `sf devops request status`
|
|
790
790
|
|
|
@@ -815,7 +815,7 @@ EXAMPLES
|
|
|
815
815
|
$ sf devops request status --target-org my-devops-org --request-token a0B000000000001
|
|
816
816
|
```
|
|
817
817
|
|
|
818
|
-
_See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
818
|
+
_See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/request/status.ts)_
|
|
819
819
|
|
|
820
820
|
## `sf devops review create`
|
|
821
821
|
|
|
@@ -852,7 +852,7 @@ EXAMPLES
|
|
|
852
852
|
$ sf devops review create --target-org my-devops-org --work-item-id 0Wx000000000001
|
|
853
853
|
```
|
|
854
854
|
|
|
855
|
-
_See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
855
|
+
_See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/review/create.ts)_
|
|
856
856
|
|
|
857
857
|
## `sf devops stage branch add`
|
|
858
858
|
|
|
@@ -895,7 +895,7 @@ EXAMPLES
|
|
|
895
895
|
--branch-name integration --create-vcs-branch
|
|
896
896
|
```
|
|
897
897
|
|
|
898
|
-
_See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
898
|
+
_See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/stage/branch/add.ts)_
|
|
899
899
|
|
|
900
900
|
## `sf devops stage branch delete`
|
|
901
901
|
|
|
@@ -933,7 +933,7 @@ EXAMPLES
|
|
|
933
933
|
0Xp000000000001
|
|
934
934
|
```
|
|
935
935
|
|
|
936
|
-
_See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
936
|
+
_See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/stage/branch/delete.ts)_
|
|
937
937
|
|
|
938
938
|
## `sf devops stage environment add`
|
|
939
939
|
|
|
@@ -973,7 +973,7 @@ EXAMPLES
|
|
|
973
973
|
Production_Org --org-type Production
|
|
974
974
|
```
|
|
975
975
|
|
|
976
|
-
_See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
976
|
+
_See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/stage/environment/add.ts)_
|
|
977
977
|
|
|
978
978
|
## `sf devops stage environment delete`
|
|
979
979
|
|
|
@@ -1007,7 +1007,7 @@ EXAMPLES
|
|
|
1007
1007
|
0Xe000000000001
|
|
1008
1008
|
```
|
|
1009
1009
|
|
|
1010
|
-
_See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1010
|
+
_See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/stage/environment/delete.ts)_
|
|
1011
1011
|
|
|
1012
1012
|
## `sf devops work-item combine`
|
|
1013
1013
|
|
|
@@ -1056,7 +1056,7 @@ FLAG DESCRIPTIONS
|
|
|
1056
1056
|
are merged into the parent's branch during promotion.
|
|
1057
1057
|
```
|
|
1058
1058
|
|
|
1059
|
-
_See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1059
|
+
_See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/work-item/combine.ts)_
|
|
1060
1060
|
|
|
1061
1061
|
## `sf devops work-item create`
|
|
1062
1062
|
|
|
@@ -1097,7 +1097,7 @@ EXAMPLES
|
|
|
1097
1097
|
--description "Implement dark mode toggle in settings page"
|
|
1098
1098
|
```
|
|
1099
1099
|
|
|
1100
|
-
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1100
|
+
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/work-item/create.ts)_
|
|
1101
1101
|
|
|
1102
1102
|
## `sf devops work-item list`
|
|
1103
1103
|
|
|
@@ -1133,7 +1133,7 @@ EXAMPLES
|
|
|
1133
1133
|
$ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
|
|
1134
1134
|
```
|
|
1135
1135
|
|
|
1136
|
-
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1136
|
+
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/work-item/list.ts)_
|
|
1137
1137
|
|
|
1138
1138
|
## `sf devops work-item prepare`
|
|
1139
1139
|
|
|
@@ -1174,7 +1174,7 @@ EXAMPLES
|
|
|
1174
1174
|
--target-stage-id 05S000000000002
|
|
1175
1175
|
```
|
|
1176
1176
|
|
|
1177
|
-
_See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1177
|
+
_See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/work-item/prepare.ts)_
|
|
1178
1178
|
|
|
1179
1179
|
## `sf devops work-item update`
|
|
1180
1180
|
|
|
@@ -1221,7 +1221,7 @@ EXAMPLES
|
|
|
1221
1221
|
--description "Users can't log in on mobile" --status "In Progress"
|
|
1222
1222
|
```
|
|
1223
1223
|
|
|
1224
|
-
_See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1224
|
+
_See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/devops/work-item/update.ts)_
|
|
1225
1225
|
|
|
1226
1226
|
## `sf project deploy pipeline quick`
|
|
1227
1227
|
|
|
@@ -1295,7 +1295,7 @@ FLAG DESCRIPTIONS
|
|
|
1295
1295
|
"sf project deploy pipeline report".
|
|
1296
1296
|
```
|
|
1297
1297
|
|
|
1298
|
-
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1298
|
+
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/project/deploy/pipeline/quick.ts)_
|
|
1299
1299
|
|
|
1300
1300
|
## `sf project deploy pipeline report`
|
|
1301
1301
|
|
|
@@ -1343,7 +1343,7 @@ FLAG DESCRIPTIONS
|
|
|
1343
1343
|
your most recent operation was longer than 3 days ago, this flag won't find the job ID.
|
|
1344
1344
|
```
|
|
1345
1345
|
|
|
1346
|
-
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1346
|
+
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/project/deploy/pipeline/report.ts)_
|
|
1347
1347
|
|
|
1348
1348
|
## `sf project deploy pipeline resume`
|
|
1349
1349
|
|
|
@@ -1410,7 +1410,7 @@ FLAG DESCRIPTIONS
|
|
|
1410
1410
|
returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
|
|
1411
1411
|
```
|
|
1412
1412
|
|
|
1413
|
-
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1413
|
+
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/project/deploy/pipeline/resume.ts)_
|
|
1414
1414
|
|
|
1415
1415
|
## `sf project deploy pipeline start`
|
|
1416
1416
|
|
|
@@ -1510,7 +1510,7 @@ FLAG DESCRIPTIONS
|
|
|
1510
1510
|
"sf project deploy pipeline report".
|
|
1511
1511
|
```
|
|
1512
1512
|
|
|
1513
|
-
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1513
|
+
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/project/deploy/pipeline/start.ts)_
|
|
1514
1514
|
|
|
1515
1515
|
## `sf project deploy pipeline validate`
|
|
1516
1516
|
|
|
@@ -1610,7 +1610,7 @@ FLAG DESCRIPTIONS
|
|
|
1610
1610
|
"sf project deploy pipeline report".
|
|
1611
1611
|
```
|
|
1612
1612
|
|
|
1613
|
-
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.
|
|
1613
|
+
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.1.1/src/commands/project/deploy/pipeline/validate.ts)_
|
|
1614
1614
|
|
|
1615
1615
|
<!-- commandsstop -->
|
|
1616
1616
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { execFile } from 'node:child_process';
|
|
17
17
|
import { Messages } from '@salesforce/core';
|
|
18
18
|
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
19
19
|
import { addStageEnvironment } from '../../../../utils/addStageEnvironment.js';
|
|
@@ -22,10 +22,42 @@ import { validateSalesforceId } from '../../../../utils/soqlUtils.js';
|
|
|
22
22
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
23
23
|
const messages = Messages.loadMessages('@salesforce/plugin-devops-center', 'devops.stage.environment.add');
|
|
24
24
|
const commonErrorMessages = Messages.loadMessages('@salesforce/plugin-devops-center', 'commonErrors');
|
|
25
|
+
/**
|
|
26
|
+
* Validates that a server-provided redirect URL is a well-formed http(s) URL, and
|
|
27
|
+
* returns its normalized form. Rejects anything else so a malicious endpoint can't
|
|
28
|
+
* smuggle shell metacharacters or non-web schemes (javascript:, file:, etc.) into
|
|
29
|
+
* the browser-open step. Throws on invalid input.
|
|
30
|
+
*/
|
|
31
|
+
function sanitizeRedirectUrl(url) {
|
|
32
|
+
let parsed;
|
|
33
|
+
try {
|
|
34
|
+
parsed = new URL(url);
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
throw new Error(messages.getMessage('error.InvalidRedirectUrl', [url]));
|
|
38
|
+
}
|
|
39
|
+
if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:') {
|
|
40
|
+
throw new Error(messages.getMessage('error.InvalidRedirectUrl', [url]));
|
|
41
|
+
}
|
|
42
|
+
// Return the normalized href: quotes, spaces, and other unsafe characters are
|
|
43
|
+
// percent-encoded, so no shell metacharacters survive.
|
|
44
|
+
return parsed.href;
|
|
45
|
+
}
|
|
25
46
|
function openUrl(url) {
|
|
26
47
|
const platform = process.platform;
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
// Pass the URL as a separate argument (never interpolated into a shell string),
|
|
49
|
+
// so it can't be interpreted as a command even if it contained metacharacters.
|
|
50
|
+
// On Windows, `start` is a cmd builtin; its first quoted argument is the window
|
|
51
|
+
// title, so pass an empty title before the URL.
|
|
52
|
+
if (platform === 'darwin') {
|
|
53
|
+
execFile('open', [url]);
|
|
54
|
+
}
|
|
55
|
+
else if (platform === 'win32') {
|
|
56
|
+
execFile('cmd', ['/c', 'start', '', url]);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
execFile('xdg-open', [url]);
|
|
60
|
+
}
|
|
29
61
|
}
|
|
30
62
|
function decodeRedirectUrl(url) {
|
|
31
63
|
return url.replace(/&/g, '&');
|
|
@@ -100,7 +132,7 @@ export default class DevopsStageEnvironmentAdd extends SfCommand {
|
|
|
100
132
|
environmentName,
|
|
101
133
|
orgType,
|
|
102
134
|
onCreated: (data) => {
|
|
103
|
-
const url = decodeRedirectUrl(data.redirectUrl);
|
|
135
|
+
const url = sanitizeRedirectUrl(decodeRedirectUrl(data.redirectUrl));
|
|
104
136
|
if (!noBrowser) {
|
|
105
137
|
openUrl(url);
|
|
106
138
|
this.log(messages.getMessage('info.BrowserOpened'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../../src/commands/devops/stage/environment/add.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../../src/commands/devops/stage/environment/add.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAO,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAsC,MAAM,0CAA0C,CAAC;AACnH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,8BAA8B,CAAC,CAAC;AAC3G,MAAM,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC,kCAAkC,EAAE,cAAc,CAAC,CAAC;AAEtG;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,GAAW;IACtC,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC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ed out. The environment was created but not yet authenticated. Re-run the command or authenticate manually via the org's DevOps Center setup.
|
|
66
|
+
|
|
67
|
+
# error.InvalidRedirectUrl
|
|
68
|
+
|
|
69
|
+
The server returned an invalid authentication redirect URL: %s. Expected an http or https URL.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-devops-center",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/plugin-devops-center",
|
|
9
|
-
"version": "2.1.
|
|
9
|
+
"version": "2.1.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@jsforce/jsforce-node": "^3",
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-devops-center",
|
|
3
3
|
"description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Salesforce",
|
|
7
7
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
"sfdx": {
|
|
259
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.1.
|
|
260
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.1.
|
|
259
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.1.1.crt",
|
|
260
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.1.1.sig"
|
|
261
261
|
}
|
|
262
262
|
}
|