From 07d1fcd93c9d8611550d941eeda21f3372a2edba Mon Sep 17 00:00:00 2001 From: Felipe Augusto <14238257+felipementel@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:00:12 -0300 Subject: [PATCH] Update pull-request-sonar.yml --- .github/workflows/pull-request-sonar.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-sonar.yml b/.github/workflows/pull-request-sonar.yml index 806b96a..ae11364 100644 --- a/.github/workflows/pull-request-sonar.yml +++ b/.github/workflows/pull-request-sonar.yml @@ -19,10 +19,11 @@ jobs: quality-gitleaks: runs-on: ubuntu-latest steps: - - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref_name }} - uses: gitleaks/gitleaks-action@v2 env: @@ -38,6 +39,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: + fetch-depth: 0 ref: ${{ github.ref_name }} - name: ZAP Scan