This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch fix/sonar in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/fix/sonar by this push: new c009a4ad1 Avoids running Sonar scan in forks c009a4ad1 is described below commit c009a4ad1e6502eeca3f9b2ea9dd278106c92ec5 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Mon Nov 18 16:06:58 2024 +0100 Avoids running Sonar scan in forks --- .github/workflows/sonar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 54a3b10e8..201f03e24 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -31,7 +31,7 @@ jobs: sonarcloud: name: Scan runs-on: ubuntu-latest - if: ${{ !github.event.pull_request.head.repo.fork }} + if: ${{ !github.event.pull_request.base.repo.fork || !github.event.pull_request.head.repo.fork }} steps: - uses: actions/checkout@v4 with: