Skip to content

Commit

Permalink
IGNITE-23820 Restore 'checkout' in sonar-pr-from-fork-build.yml (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof authored Dec 25, 2024
1 parent 510fa7b commit d6d8b06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/sonar-pr-from-fork-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
name: Build artifacts for Sonar Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up JDK11
uses: actions/setup-java@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sonar-pr-from-fork-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ jobs:
# "fetch-depth: 0" is needed for Sonar's new code detection, blame information and issue backdating
# see more details at https://community.sonarsource.com/t/git-fetch-depth-implications/75260

- name: Checkout PR base branch
run: |
git remote add upstream https://github.com/apache/ignite
git fetch upstream
git checkout -B $pr_base_ref upstream/$pr_base_ref
git checkout ${{ github.event.workflow_run.head_sha }}
git clean -ffdx && git reset --hard HEAD
- name: Download compiled classes artifact
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit d6d8b06

Please sign in to comment.