diff --git a/.github/workflows/snyk-analysis.yml b/.github/workflows/snyk-analysis.yml index f5893c6a623..3728982470d 100644 --- a/.github/workflows/snyk-analysis.yml +++ b/.github/workflows/snyk-analysis.yml @@ -19,8 +19,14 @@ jobs: outputs: recent_branch: ${{ steps.get_recent_branch.outputs.recent_branch }} steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history so we can access all branches + - name: Fetch all branches run: git fetch --all + - name: Get Most Recent Branch id: get_recent_branch run: | @@ -65,6 +71,7 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ needs.get-most-recent-branch.outputs.recent_branch }} + fetch-depth: 0 # Make sure to fetch the entire branch - name: Build Keycloak uses: ./.github/actions/build-keycloak