Skip to content

Commit

Permalink
ci: Disable Sonar if PR comes from a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 committed Jan 8, 2025
1 parent a29e311 commit 55edb59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
build:
name: Build
runs-on: ubuntu-22.04
# Sonar Token can't be passed to PRs from forks. Disable Sonar workflow unless PR is from a branch.
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 55edb59

Please sign in to comment.