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
+3 -1
View File
@@ -20,8 +20,10 @@
"main": "src/index.ts",
"types": "src/index.ts",
"files": [
"dist"
"dist",
"bin"
],
"bin": "bin/backstage-cli-module-actions",
"scripts": {
"build": "backstage-cli package build",
"clean": "backstage-cli package clean",