Skip to content

fix: stop Corepack prompting in the Renovate container - #10303

Merged
cryptodev-2s merged 3 commits into
mainfrom
fix/renovate-corepack-prompt
Sep 21, 2026
Merged

cryptodev-2s merged 3 commits into
mainfrom
fix/renovate-corepack-prompt

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Explanation

The first approved update on the Dependency Dashboard (#10300) produced no pull request. Renovate honoured the approval and got as far as building the branch, then the lockfile update failed:

ExecError: Command failed: yarn install --mode=update-lockfile
! Corepack is about to download https://repo.yarnpkg.com/4.17.1/packages/yarnpkg-cli/bin/yarn.js

Corepack asks for confirmation before downloading the Yarn version pinned in packageManager. Inside the Renovate container there is nothing to answer it, so the install exits 1 and the run ends with No files to commit, which is why no branch and no pull request appeared.

Everything before that worked. The debug log shows the approval being picked up correctly:

Branch is not pending, removing pending upgrades   (renovate/ts-jest-29.x-lockfile)
Branch needs creating

COREPACK_ENABLE_DOWNLOAD_PROMPT=0 is Corepack's own switch for this; its source reads the variable and treats 0 as "do not prompt".

References

Follows #10298. Part of WPC-1161.

Checklist

  • I've updated the test suite for new or updated code as appropriate (workflow only)
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed (no published package is touched)
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
CI-only workflow change with no impact on application code, auth, or published packages.

Overview
Renovate lockfile updates were failing in CI because Corepack prompts to download the Yarn version from packageManager, and the Renovate container has no way to confirm—yarn install --mode=update-lockfile exits and no PR gets created.

The Run Renovate step now sets COREPACK_ENABLE_DOWNLOAD_PROMPT=0 and passes it through the action via additional-env-list, so Corepack downloads Yarn without an interactive prompt.

Reviewed by Cursor Bugbot for commit 8cc066b. Bugbot is set up for automated code reviews on this repo. Configure here.

@cryptodev-2s
cryptodev-2s requested a review from a team as a code owner September 18, 2026 20:36
@cryptodev-2s
cryptodev-2s deployed to default-branch September 18, 2026 20:36 — with GitHub Actions Active
@cryptodev-2s cryptodev-2s self-assigned this Sep 18, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 839e0a7. Configure here.

Comment thread .github/workflows/renovate.yml
@cryptodev-2s
cryptodev-2s requested review from mcmire and removed request for mcmire September 18, 2026 20:46
@cryptodev-2s
cryptodev-2s added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 0936afc Sep 21, 2026
337 checks passed
@cryptodev-2s
cryptodev-2s deleted the fix/renovate-corepack-prompt branch September 21, 2026 08:58
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