Skip to content

Commit

Permalink
[GHA] Do not run sonarcloud on forks (#1222)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz authored Jan 6, 2025
1 parent a34261d commit 37dc8d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches:
- master
# do not validate pull requests because SONAR_TOKEN is available only for project owner
# Community version only allows running against 'main' branch, see https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/github-integration/

jobs:
build:
# Do not run sonar on forks because SONAR_TOKEN is available only for project owner
if: github.repository_owner == 'damianszczepanik'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 37dc8d8

Please sign in to comment.