Skip to content

chore: migrate to @github/keytar#2892

Merged
sjinks merged 1 commit into
trunkfrom
migrate-keytar
Jun 18, 2026
Merged

chore: migrate to @github/keytar#2892
sjinks merged 1 commit into
trunkfrom
migrate-keytar

Conversation

@sjinks

@sjinks sjinks commented Jun 18, 2026

Copy link
Copy Markdown
Member

Description

Migrate from unsupported @postman/node-keytar to @github/keytar.

Pull request checklist

New release checklist

Steps to Test

CI must pass.

Copilot AI review requested due to automatic review settings June 18, 2026 22:20
@sjinks sjinks self-assigned this Jun 18, 2026
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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 migrates the CLI’s secure keychain integration from the deprecated @postman/node-keytar package to @github/keytar, updating runtime imports and the project’s dependency/packaging configuration accordingly.

Changes:

  • Switched secure keychain implementation to import @github/keytar.
  • Updated dependency metadata and lockfile to use @github/keytar, and added an allowScripts entry for its install script.
  • Updated SEA bundling externals to treat @github/keytar as an external native dependency.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
types/@postman/node-keytar/index.d.ts Removes the local TS module declaration for the old keytar package.
src/lib/keychain/secure.ts Updates keytar import to @github/keytar.
package.json Replaces optional dependency and adds allowScripts allow-list entries.
npm-shrinkwrap.json Updates shrinkwrap to resolve @github/keytar and removes old dependency tree.
helpers/build-sea.js Updates SEA bundling externals from @postman/node-keytar to @github/keytar.
Files not reviewed (1)
  • npm-shrinkwrap.json: Generated file

Comment thread package.json
Comment on lines +186 to +188
"allowScripts": {
"ssh2@1.17.0": true,
"@github/keytar@7.10.6": true
Comment thread helpers/build-sea.js
Comment on lines 85 to +87
external: [
'@postman/node-keytar',
'@postman/node-keytar/*',
'@github/keytar',
'@github/keytar/*',
@sjinks sjinks merged commit 6bed0df into trunk Jun 18, 2026
19 checks passed
@sjinks sjinks deleted the migrate-keytar branch June 18, 2026 22:27
@sonarqubecloud

Copy link
Copy Markdown

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