Skip to content

build: disable SonarCloud for fork pull requests#4142

Merged
blakeli0 merged 1 commit intogoogleapis:mainfrom
westarle:ci/disable-sonar-for-forks
Mar 16, 2026
Merged

build: disable SonarCloud for fork pull requests#4142
blakeli0 merged 1 commit intogoogleapis:mainfrom
westarle:ci/disable-sonar-for-forks

Conversation

@westarle
Copy link
Copy Markdown
Contributor

The SonarCloud Build workflow currently runs on all pull requests, including those originating from forks. However, SonarCloud requires secrets to publish its analysis, and these secrets are (by design) not exposed to pull requests from forks.

This causes the workflow to consistently fail for any external contributor or branch not residing on the main repository, creating noise in the PR checks.

This PR adds a standard GitHub Actions if condition to the build job to simply skip the workflow if the pull request originates from a fork.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Mar 14, 2026
@westarle westarle requested a review from blakeli0 March 14, 2026 03:51
@blakeli0 blakeli0 merged commit 4a24d92 into googleapis:main Mar 16, 2026
48 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants