Skip to content

Commit 648ee6f

Browse files
committed
Fix git history to only contain data of the selected branch
1 parent 15b1f7a commit 648ee6f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/java-code-analysis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,8 @@ jobs:
5656

5757
steps:
5858
- name: (Prepare Code to Analyze) Checkout AxonFramework repository
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
60-
with:
61-
repository: AxonFramework/AxonFramework
62-
ref: axon-${{ env.AXON_FRAMEWORK_VERSION }}
63-
path: ./source
64-
fetch-depth: 0 # Include the full git history for analysis
59+
run: |
60+
git clone --bare https://github.com/AxonFramework/AxonFramework.git --branch "axon-${{ env.AXON_FRAMEWORK_VERSION }}" --single-branch "./source/AxonFramework-${{ env.AXON_FRAMEWORK_VERSION }}/.git"
6561
6662
- name: (Prepare Code to Analyze) Setup Java Development Kit for Maven JARs downloading (JDK) ${{ env.JAVA_VERSION}}
6763
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4

.github/workflows/typescript-code-analysis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,10 @@ jobs:
5454

5555
steps:
5656
- name: (Prepare Code to Analyze) Checkout react-router repository
57-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
58-
with:
59-
repository: remix-run/react-router
60-
ref: react-router@${{ env.REACT_ROUTER_VERSION }}
61-
fetch-depth: 0 # Include the full git history for enhanced analysis
62-
57+
run: |
58+
git clone https://github.com/remix-run/react-router.git --branch "react-router@${{ env.REACT_ROUTER_VERSION }}" --single-branch .
59+
60+
6361
- name: (Prepare Code to Analyze) Setup pnpm for react-router
6462
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
6563

0 commit comments

Comments
 (0)