From 327201151c3f4fa1aedaf153c58fbbe800147efc Mon Sep 17 00:00:00 2001 From: gmuloc Date: Fri, 5 Jul 2024 17:35:39 +0200 Subject: [PATCH] ci: Checking out the PR --- .github/workflows/sonar.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 109828071..81db36e58 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -14,10 +14,12 @@ on: jobs: sonarcloud: name: Run Sonarlint analysis and upload to SonarCloud. + if: github.repository == 'aristanetworks/anta' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Setup Python uses: actions/setup-python@v5