From ad85a6460403d9f59e010b6217f98f5ccb2b1ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Vincent?= <28714795+leovct@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:34:26 +0200 Subject: [PATCH] ci: fix security build job (#328) * ci: fix security build job * chore: run job on PRs --- .github/workflows/security-build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/security-build.yml b/.github/workflows/security-build.yml index 7edc5250..60550880 100644 --- a/.github/workflows/security-build.yml +++ b/.github/workflows/security-build.yml @@ -3,7 +3,7 @@ name: Security Build on: push: branches: [main] - #pull_request: + pull_request: workflow_dispatch: jobs: @@ -17,11 +17,9 @@ jobs: fetch-depth: 0 - uses: sonarsource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # This step will only execute if the necessary secrets are available, preventing failures # on pull requests from forked repositories. if: ${{ env.SONAR_TOKEN}} env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}