Skip to content

fix(release): restore persist-credentials:false, re-auth only for release ops - #47

Merged
asachs01 merged 4 commits into
mainfrom
fix/persist-credentials
Sep 4, 2026
Merged

fix(release): restore persist-credentials:false, re-auth only for release ops#47
asachs01 merged 4 commits into
mainfrom
fix/persist-credentials

Conversation

@asachs01

@asachs01 asachs01 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Security retrofit from the node-connectwise-automate finding (WYRE-AI/node-connectwise-automate#82, live-verified, murph full review). task_1788457898992.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…ease ops

CodeRabbit catch (CWE-250, found on node-connectwise-automate rollout,
live-verified there): the checkout step's default persisted credential
stayed live through npm ci/build/test. Restores persist-credentials:
false (the prior design had it) and re-authenticates in one place,
right after the untrusted npm lifecycle completes, for the git commands
(fetch --tags, the two pushes) that need it. task_1788457898992.
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 46 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: dbcf07bf-c6fc-4503-a359-80de24b85f7a

📥 Commits

Reviewing files that changed from the base of the PR and between 67be5c8 and 8c00918.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

Comment @coderabbitai help to get the list of available commands.

Aaron Sachs added 3 commits September 4, 2026 00:39
CodeRabbit catch (CWE-522): set-url writes the token into .git/config,
readable by any later process in the job. Authenticate each git
network call individually via -c http.extraheader instead -- nothing
persists to disk. task_1788457898992.
GitHub auto-masks GITHUB_TOKEN itself but not derived/transformed
values like its base64 encoding. ::add-mask:: right after computing
it, before any git command uses it, at all 3 call sites.
CodeRabbit catch (CWE-319): if something upstream ever rewrote origin's
URL to http://, using the remote name would send the Basic-auth header
in cleartext. An explicit https:// URL can't be redirected that way.
@asachs01

asachs01 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Murph full review LGTM (persist-credentials + http.extraheader + masking + explicit-https-URL, live-verified on node-connectwise-automate). CodeRabbit's own review state on this PR is stale/rate-limited (non-actionable) — merging on murph's review as the real gate per boss's ruling.

@asachs01
asachs01 merged commit 59f772d into main Sep 4, 2026
2 checks passed
@asachs01
asachs01 deleted the fix/persist-credentials branch September 4, 2026 00:59
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