fix push-to-action: use CLI direct invocation for token acquisition

the inline `node -e` + `TOKEN=$(...)` approach broke because
`core.getIDToken()` in @actions/core writes `::debug::` and
`::add-mask::` to stdout, polluting the captured value.

`node cli.ts gha token` uses `core.setOutput()` which writes to
the $GITHUB_OUTPUT file instead of stdout.

Made-with: Cursor
This commit is contained in:
Colin McDonnell
2026-04-12 00:47:41 +00:00
committed by pullfrog[bot]
parent 61bbfb932e
commit 421607cf97
21 changed files with 4292 additions and 3217 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ outputs:
runs:
using: "node24"
main: "entry"
post: "post"
main: "entry.ts"
post: "post.ts"
post-if: "failure() || cancelled()"
branding: