Skip to content

Commit

Permalink
chore: Disable Sonar if PR comes from a fork (#3493)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumin8 authored Jan 24, 2025
1 parent d938020 commit 5d72a28
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 @@ -16,6 +16,8 @@ jobs:
sonar:
name: Build with Sonar
runs-on: ubuntu-20.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:
- name: Get current date
id: date
Expand Down

0 comments on commit 5d72a28

Please sign in to comment.