fix: address review feedback for actions CLI module

Fix argument parsing bugs in the execute command where actionId at index 0
was incorrectly skipped when --instance was absent, and flag values matching
the actionId string were erroneously removed. Add --help support to the
execute command for CLI report generation. Add missing bin script and
cli-report.md for cli-module-actions. Add resolveAuth tests. Bump
backend-defaults changeset to minor for the security-relevant auth change.
Replace cross-fetch with native fetch in cli-module-auth to avoid punycode
deprecation warnings during CLI report generation.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 10:54:11 +01:00
parent 42960f1db7
commit abc12cd8e1
11 changed files with 375 additions and 12 deletions
+2 -1
View File
@@ -2830,6 +2830,8 @@ __metadata:
"@backstage/cli-module-auth": "workspace:^"
"@backstage/cli-node": "workspace:^"
cleye: "npm:^2.3.0"
bin:
cli-module-actions: bin/backstage-cli-module-actions
languageName: unknown
linkType: soft
@@ -2844,7 +2846,6 @@ __metadata:
"@types/fs-extra": "npm:^11.0.0"
"@types/proper-lockfile": "npm:^4"
cleye: "npm:^2.3.0"
cross-fetch: "npm:^4.0.0"
fs-extra: "npm:^11.2.0"
glob: "npm:^7.1.7"
inquirer: "npm:^8.2.0"