Pass a placeholder value to --secret-stdin #3

Merged
matchu merged 1 commit from armin-bot/openneo-code:claude/runner-secret-stdin-flag into main 2026-11-08 20:00:07 -08:00
Contributor

Registering the runner failed with flag needs an argument: --secret-stdin. Forgejo v17 defines --secret-stdin as a string flag (cli.StringFlag in cmd/forgejo/actions.go), but readSecret only checks IsSet and then reads the secret from stdin, ignoring the value. So this passes --secret-stdin=- as a placeholder, with a comment explaining why.

ansible-playbook --syntax-check passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_014PWWczf6WkuBDdUASWtRcZ

Registering the runner failed with `flag needs an argument: --secret-stdin`. Forgejo v17 defines `--secret-stdin` as a string flag (`cli.StringFlag` in `cmd/forgejo/actions.go`), but `readSecret` only checks `IsSet` and then reads the secret from stdin, ignoring the value. So this passes `--secret-stdin=-` as a placeholder, with a comment explaining why. `ansible-playbook --syntax-check` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014PWWczf6WkuBDdUASWtRcZ
Forgejo defines --secret-stdin as a string flag, so the bare flag fails
with "flag needs an argument". It ignores the value and reads the
secret from stdin either way, so pass a placeholder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWczf6WkuBDdUASWtRcZ
matchu merged commit 96bd265654 into main 2026-11-08 20:00:07 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OpenNeo/openneo-code!3
No description provided.