Skip to content

Clarify credential environment variable inputs#1134

Merged
brunoborges merged 3 commits into
mainfrom
brunoborges-clarify-credential-inputs
Jul 18, 2026
Merged

Clarify credential environment variable inputs#1134
brunoborges merged 3 commits into
mainfrom
brunoborges-clarify-credential-inputs

Conversation

@brunoborges

Copy link
Copy Markdown
Contributor

Description:
Credential-related input names could be mistaken for inputs that accept actual usernames, passwords, or passphrases, even though they accept environment variable names. Rename them to server-username-env-var, server-password-env-var, and gpg-passphrase-env-var so their semantics are explicit.

The previous names remain available as deprecated aliases and emit migration warnings. When both forms are supplied, the replacement input takes precedence. Documentation, publishing examples, tests, and generated action bundles are updated consistently.

Related issue:
N/A

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass.
  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Rename credential-related inputs to make their environment-variable semantics explicit while preserving deprecated aliases with migration warnings.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 70a3daa8-dbc9-4eb0-a57b-df198a459315
@brunoborges
brunoborges requested a review from a team as a code owner July 17, 2026 16:09
Copilot AI review requested due to automatic review settings July 17, 2026 16:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR renames credential-related inputs to make it explicit they accept environment variable names (not actual usernames/passwords/passphrases), while keeping the old names as deprecated aliases with migration warnings.

Changes:

  • Introduces *-env-var input names and keeps prior names as deprecated aliases, with precedence for the new inputs.
  • Updates authentication settings generation to consume the renamed inputs and emit warnings when deprecated aliases are used.
  • Updates documentation, examples, workflow e2e publishing config, tests, and regenerated dist/ bundles to match the new input names.
Show a summary per file
File Description
src/constants.ts Adds new input name constants (and deprecated aliases) plus defaults used by the new inputs.
src/auth.ts Reads inputs via a new helper that supports deprecated aliases + warnings; wires renamed inputs through settings generation.
README.md Updates documented input names and the V6 change notes accordingly.
docs/advanced-usage.md Updates publishing and GPG examples to use the new *-env-var input names.
action.yml Adds the new inputs and keeps deprecated aliases (but currently missing metadata defaults for server inputs).
.github/workflows/e2e-publishing.yml Updates workflow examples to the new input names.
__tests__/auth.test.ts Adds unit tests for deprecated alias behavior and precedence.
dist/setup/index.js Regenerated bundle reflecting the input renames and alias logic.
dist/cleanup/index.js Regenerated bundle reflecting the input renames/constants changes.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 7/9 changed files
  • Comments generated: 3
  • Review effort level: Low

Comment thread action.yml
Comment on lines +49 to 52
server-username-env-var:
description: 'Environment variable name for the username for authentication
to the Apache Maven repository. Default is $GITHUB_ACTOR'
required: false
Comment thread action.yml
Comment thread src/constants.ts
brunoborges and others added 2 commits July 17, 2026 12:23
Resolve documentation conflicts by retaining the latest V6 examples with the explicit environment-variable input names.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 70a3daa8-dbc9-4eb0-a57b-df198a459315
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@brunoborges
brunoborges merged commit c3d7ccb into main Jul 18, 2026
310 of 311 checks passed
@brunoborges
brunoborges deleted the brunoborges-clarify-credential-inputs branch July 18, 2026 00:11
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.

3 participants