Skip to content

ci(cmd-compile): use persist-credentials: false and env indirection#697

Open
joshtrichards wants to merge 2 commits intomasterfrom
jtr/ci-cmd-compile-defensive
Open

ci(cmd-compile): use persist-credentials: false and env indirection#697
joshtrichards wants to merge 2 commits intomasterfrom
jtr/ci-cmd-compile-defensive

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

Hardens the /compile comment-command workflow template.

  • Switch checkout to persist-credentials: false so the PAT is not in the credential store during npm ci / npm run build
  • Add explicit git remote set-url before push steps to supply credentials at push time only
  • Replace ${{ }} interpolation in run: blocks with env: indirection (defense-in-depth)

Companion PR: nextcloud/server#59464

Defense in depth and consistency alignment with command-3rdparty's implementation:

- Switch checkout to persist-credentials: false so the PAT is not
  in the credential store during npm ci / npm run build
- Add explicit git remote set-url before push steps
- Move all ${{ }} interpolations in run: blocks to env: variables

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards marked this pull request as ready for review April 6, 2026 02:53
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Apr 6, 2026
@joshtrichards joshtrichards marked this pull request as draft April 6, 2026 02:54
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards marked this pull request as ready for review April 6, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant