Skip to content

Commit

Permalink
Fix sonarcloud if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvilsa committed Feb 12, 2025
1 parent 3aa7f09 commit 63f4505
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ jobs:
sonarcloud:
runs-on: ubuntu-latest
environment: sonarcloud
if: ${{ secrets.SONAR_TOKEN != '' }} # Skip for PRs from forks that don't have access to secrets
if: |
(github.event_name == 'push') ||
(github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork)
needs: [linux, pydantic-v1, without-pyyaml]
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 63f4505

Please sign in to comment.