Skip to content

fix DO-1765: Fix PR #103 regressions in node-pr workflow and run-checks action#120

Merged
TheOrangePuff merged 2 commits intomainfrom
fix/DO-1765_fix_pr103_regressions
Mar 31, 2026
Merged

fix DO-1765: Fix PR #103 regressions in node-pr workflow and run-checks action#120
TheOrangePuff merged 2 commits intomainfrom
fix/DO-1765_fix_pr103_regressions

Conversation

@TheOrangePuff
Copy link
Copy Markdown
Member

Description of the proposed changes

Fixes two bugs introduced by PR #103 (DO-1802):

  1. node-pr.yml — Nx checkout steps wipe node_modules/: The persist-credentials: false added in PR DO-1802: Add Yamllinting, actionlinting and zizmor static analysis #103 causes the second actions/checkout (for Nx full history) to no longer recognise existing repo credentials, triggering a full re-checkout with git clean -ffdx that deletes the node_modules/ directory extracted from a previous artifact step. Fixed by adding clean: false to both Nx checkout steps (build and test jobs).

  2. run-checks/action.yml — Variable expansion broken by single quotes: When ${{ inputs.commands }} was moved to an env var INPUTS_COMMANDS, the readarray line used single quotes ('${INPUTS_COMMANDS}'), preventing bash variable expansion. This caused the command list to always be empty, silently skipping all checks. Fixed by changing to double quotes.

Notes to reviewers

Both bugs were introduced in the same PR (#103) as part of the template injection hardening work.

ℹ️ When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

The persist-credentials: false added in PR #103 causes the second
checkout to no longer recognise existing repo credentials, triggering
a full re-checkout with git clean -ffdx that wipes node_modules/.
Single quotes around ${INPUTS_COMMANDS} prevented bash variable
expansion, causing the command list to always be empty and silently
skipping all checks.
@TheOrangePuff TheOrangePuff requested a review from a team as a code owner March 31, 2026 00:58
@TheOrangePuff TheOrangePuff merged commit 0969b8f into main Mar 31, 2026
3 checks passed
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.

2 participants