Repository navigation
ci: unblock releases and skip the sonar scan on dependabot pull requests - #12948
Merged
Merged
Conversation
Code Review by Qodo
1.
|
|
alumni
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes the two failures hit while releasing 1.1.2.
Sonar on Dependabot pull requests
The scan steps were guarded against forks only:
Dependabot pushes its branches to this repository rather than a fork, so the guard passes. A Dependabot
pull_requestrun reads from a separate secrets store, and the repository has no Dependabot secrets, soSONAR_TOKENarrives empty. From run 37728614352, the first attempt on a Dependabot pull request:The guard now skips Dependabot as well. The alternative is adding
SONAR_TOKENto the Dependabot secrets store, which would expose the token to runs built from dependency updates.The codemod blocking releases
The 1.1.2 release published
typeorm, then failed onPublish @typeorm/codemodwithENEEDAUTH. That is a credentials error: the codemod had no trusted publisher on npm, whiletypeormdid. A trusted publisher has since been configured on npmjs.com againsttypeorm/typeorm, workflowpublish-package.yml, environmentnpm.With credentials working, that release would now fail on the version number instead. The codemod is versioned independently of typeorm and usually does not change between releases. A release that leaves its version alone therefore tries to publish a version already on the registry, and does so after
typeormhas gone out.This change skips the publish when the version is already on the registry. The lookup asks
registry.npmjs.orgdirectly rather than going throughpnpm view, and any status other than 200 or 404 fails the step.Against the live registry,
1.0.3returns 200 and skips, while1.0.4and a dated nightly version return 404 and publish. A release leaves an unchanged codemod alone, and a nightly still publishes because it stamps a fresh version.