Skip to content

Commit

Permalink
use github toke n to fetch repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jan 17, 2025
1 parent 458232b commit 6db4c42
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6db4c42

Please sign in to comment.