Skip to content

fix(ncu-config): allow overriding global encrypted keys with local ones#1030

Merged
aduh95 merged 3 commits intonodejs:mainfrom
aduh95:config-fix-local-override
Mar 20, 2026
Merged

fix(ncu-config): allow overriding global encrypted keys with local ones#1030
aduh95 merged 3 commits intonodejs:mainfrom
aduh95:config-fix-local-override

Conversation

@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Jan 14, 2026

If a value is defined locally, it should make no difference whether the associated key is present or not in the global config.

I hit that as I tried setting a temp GH token to access the private repo for the security release, and got an error sent from the encrypted value setter, which gets reached because Object.assign calls it.

If a value is defined locally, it should make no difference whether the
associated key is present or not in the global config.
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 78.57143% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.93%. Comparing base (37604ef) to head (13bb6a7).
⚠️ Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
lib/config.js 78.57% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1030      +/-   ##
==========================================
+ Coverage   80.71%   80.93%   +0.22%     
==========================================
  Files          39       39              
  Lines        4754     4841      +87     
==========================================
+ Hits         3837     3918      +81     
- Misses        917      923       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aduh95
Copy link
Contributor Author

aduh95 commented Mar 13, 2026

Ping @nodejs/node-core-utils for reviews

@aduh95 aduh95 merged commit f2f4194 into nodejs:main Mar 20, 2026
11 of 13 checks passed
@aduh95 aduh95 deleted the config-fix-local-override branch March 20, 2026 18:00
This was referenced Mar 20, 2026
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