Skip to content

feat: add client-id input as preferred App credential - #171

Merged
c-vigo merged 3 commits into
devfrom
feature/168-client-id-input
Aug 7, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/168-client-id-input

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Closes #168

What

  • Add a client-id input to action.yml as the preferred GitHub App credential, aliased onto the same code path as app-id (the value is forwarded verbatim to createAppAuth, which accepts client IDs).
  • Keep app-id working unchanged for back-compat, with a deprecation note in its description and a core.warning at runtime.
  • Setting both inputs fails with an explicit error instead of silently picking one.
  • Credential pair-validation errors now name whichever input the caller used.
  • README, example-workflow.yml, and changelog updated; dist/ rebuilt.

Tests

New unit cases cover: client-id + key (token generated, createAppAuth receives the client ID, no deprecation warning), app-id + key (still works, warns deprecated), both set (explicit failure), client-id alone (pair-validation error naming client-id). Existing cases untouched except the only-private-key error string, which now names client-id.

Follow-up

Minor release 0.5.0 (rebuilt dist/) after merge; tag + SHA to be recorded on #168 for the pinned downstream consumers (vig-os/devkit#1365, vig-os/tessera#364, …).

c-vigo added 3 commits August 7, 2026 15:26
Failing tests for issue #168: client-id alone works, app-id still works
but warns as deprecated, both together fail explicitly, and pair
validation names the input the caller used.

Refs: #168
Alias client-id onto the existing app-id code path; the value is
forwarded verbatim to createAppAuth, which accepts client IDs. app-id
keeps working but warns as deprecated, and setting both fails with an
explicit error. Pair-validation errors now name the input the caller
used. Rebuild dist bundle.

Refs: #168
@c-vigo
c-vigo merged commit bdd56b2 into dev Aug 7, 2026
23 checks passed
@c-vigo
c-vigo deleted the feature/168-client-id-input branch August 7, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant