From 6db4c4269474e2407a14ea54950a4915f75e4702 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Fri, 17 Jan 2025 20:17:19 +0900 Subject: [PATCH] use github toke n to fetch repo --- .github/workflows/lint-and-test.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index 842c311d248..f28459ccfcd 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -299,20 +299,21 @@ jobs: - name: Install dependencies run: CI="" yarn install --frozen-lockfile - - name: Disable Git credential helper - run: git config --global credential.helper "" - - - name: Remove existing SSH origin (if any) - run: git remote remove origin || true + - name: Display Git Configurations + run: | + echo "=== Local Git Config (.git/config) ===" + git config --local --list || echo "No local configs found" - - name: Add HTTPS origin - run: git remote add origin https://github.com/opencrvs/opencrvs-core.git + echo -e "\n=== Global Git Config (~/.gitconfig) ===" + git config --global --list || echo "No global configs found" - - name: Verify remote URL - run: git remote -v + echo -e "\n=== All Git Configs with Origins ===" + git config --list --show-origin - name: Fetch full Git history - run: git fetch --prune --unshallow + run: git fetch --prune --depth=100 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run Chromatic uses: chromaui/action@latest