sf-plugin-permission-sets 0.0.0-dev.51 → 0.0.0-dev.53
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 +17 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -395,21 +395,26 @@ Two dead-simple workflows: check pull requests to main with no org, then apply o
|
|
|
395
395
|
```yaml
|
|
396
396
|
# .github/workflows/permissions-check.yml
|
|
397
397
|
name: permissions-check
|
|
398
|
+
|
|
398
399
|
on:
|
|
399
400
|
pull_request:
|
|
400
401
|
branches: [main]
|
|
402
|
+
|
|
401
403
|
jobs:
|
|
402
404
|
check:
|
|
403
405
|
runs-on: ubuntu-latest
|
|
404
406
|
steps:
|
|
405
|
-
- uses: actions/checkout@
|
|
406
|
-
- uses: actions/setup-node@
|
|
407
|
+
- uses: actions/checkout@v7
|
|
408
|
+
- uses: actions/setup-node@v7
|
|
407
409
|
with:
|
|
408
410
|
node-version: 20
|
|
411
|
+
|
|
409
412
|
- name: Install Salesforce CLI
|
|
410
413
|
run: npm install --global @salesforce/cli
|
|
414
|
+
|
|
411
415
|
- name: Install the plugin
|
|
412
416
|
run: sf plugins install sf-plugin-permission-sets
|
|
417
|
+
|
|
413
418
|
- name: Check the permission files
|
|
414
419
|
run: sf ps check --file "permissions/*.yml"
|
|
415
420
|
```
|
|
@@ -419,32 +424,34 @@ jobs:
|
|
|
419
424
|
```yaml
|
|
420
425
|
# .github/workflows/permissions-apply.yml
|
|
421
426
|
name: permissions-apply
|
|
427
|
+
|
|
422
428
|
on:
|
|
423
429
|
push:
|
|
424
430
|
branches: [main]
|
|
425
|
-
|
|
431
|
+
|
|
426
432
|
jobs:
|
|
427
433
|
apply:
|
|
428
434
|
runs-on: ubuntu-latest
|
|
429
435
|
steps:
|
|
430
|
-
- uses: actions/checkout@
|
|
431
|
-
- uses: actions/setup-node@
|
|
436
|
+
- uses: actions/checkout@v7
|
|
437
|
+
- uses: actions/setup-node@v7
|
|
432
438
|
with:
|
|
433
439
|
node-version: 20
|
|
440
|
+
|
|
434
441
|
- name: Install Salesforce CLI
|
|
435
442
|
run: npm install --global @salesforce/cli
|
|
443
|
+
|
|
436
444
|
- name: Install the plugin
|
|
437
445
|
run: sf plugins install sf-plugin-permission-sets
|
|
438
|
-
|
|
439
|
-
run: echo '${{ secrets.SF_AUTH_URL }}' > auth.txt
|
|
446
|
+
|
|
440
447
|
- name: Log in to the org
|
|
441
|
-
run: sf org login sfdx-url --sfdx-url-
|
|
442
|
-
|
|
448
|
+
run: echo '${{ secrets.SFDX_AUTH_URL }}' | sf org login sfdx-url --sfdx-url-stdin --alias prod
|
|
449
|
+
|
|
443
450
|
- name: Apply the assignments
|
|
444
451
|
run: sf ps apply --file "permissions/*.yml" --target-org prod --mode sync --no-prompt
|
|
445
452
|
```
|
|
446
453
|
|
|
447
|
-
Get the auth URL once with `sf org display --verbose --target-org prod`, copy the `Sfdx Auth Url` value, and save it as a repository secret named `
|
|
454
|
+
Get the auth URL once with `sf org display --verbose --target-org prod`, copy the `Sfdx Auth Url` value, and save it as a repository secret named `SFDX_AUTH_URL`.
|
|
448
455
|
|
|
449
456
|
Want the diff on the PR before merging? Add a `sf ps plan --file "permissions/*.yml" --target-org prod` step (it needs the same org auth) to the check workflow.
|
|
450
457
|
|
package/package.json
CHANGED