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 01fd9a9
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,20 +299,19 @@ 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: Add HTTPS origin
run: git remote add origin https://github.com/opencrvs/opencrvs-core.git

- name: Verify remote URL
run: git remote -v
# Without this, the fetch command will fail with
# fatal: could not read Username for 'https://github.com': No such device or address
- name: Remove extraheader config
run: git config --unset http.https://github.com/.extraheader

- name: Fetch full Git history
run: git fetch --prune --unshallow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Count total commits
run: |
echo "Total commits: $(git rev-list --count HEAD)"
- name: Run Chromatic
uses: chromaui/action@latest
Expand Down

0 comments on commit 01fd9a9

Please sign in to comment.