Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run sonar cloud when PGM org is repo owner #273

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

mgovers
Copy link
Member

@mgovers mgovers commented Sep 3, 2024

Ensure Sonar Cloud is only run when the PowerGridModel organisation is the repo owner.

This prevents cases like #272 in which an external contributor's PR is blocked by the fact that Sonar Cloud cannot run due to missing secrets.

Note that the line is also present in the power-grid-model repo in https://github.com/PowerGridModel/power-grid-model/blob/7e0645bf40cd4c8cacf023b6695f2811d889dd88/.github/workflows/sonar.yml#L76 .

This change was deliberately made via a fork to prove that it works as intended.

Signed-off-by: Martijn Govers <[email protected]>
@mgovers mgovers changed the title test commit Only run sonar cloud when PGM org is repo owner Sep 3, 2024
@mgovers mgovers marked this pull request as ready for review September 3, 2024 07:00
@mgovers mgovers enabled auto-merge September 3, 2024 07:02
@mgovers mgovers added this pull request to the merge queue Sep 3, 2024
Merged via the queue into PowerGridModel:main with commit 4790212 Sep 3, 2024
24 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