fix(ci): Replace GitHub actions/checkout with Forgejo auth

Use CI_RUNNER and CI_RUNNER_SECRET for repo clone authentication.
Embed credentials in git clone URL: https://user:token@host/repo.git

Removes dependency on GITHUB_TOKEN (GitHub-specific) and improves Forgejo compatibility.
This commit is contained in:
Story Crater Bot
2026-07-17 12:19:23 -07:00
parent c000ddb402
commit f8b19d9f55
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 run: |
CLONE_URL="https://${{ secrets.CI_RUNNER }}:${{ secrets.CI_RUNNER_SECRET }}@${{ gitea.repository_clone_url | replace 'https://', '' }}"
git clone --depth 1 "$CLONE_URL" .
git fetch origin ${{ gitea.ref }}:current-branch
git checkout current-branch
- name: Install ArgoCD CLI - name: Install ArgoCD CLI
run: | run: |
+5 -1
View File
@@ -16,7 +16,11 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 run: |
CLONE_URL="https://${{ secrets.CI_RUNNER }}:${{ secrets.CI_RUNNER_SECRET }}@${{ gitea.repository_clone_url | replace 'https://', '' }}"
git clone --depth 1 "$CLONE_URL" .
git fetch origin ${{ gitea.ref }}:current-branch
git checkout current-branch
- name: Install Tools - name: Install Tools
run: | run: |
+5 -1
View File
@@ -18,7 +18,11 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 run: |
CLONE_URL="https://${{ secrets.CI_RUNNER }}:${{ secrets.CI_RUNNER_SECRET }}@${{ gitea.repository_clone_url | replace 'https://', '' }}"
git clone --depth 1 "$CLONE_URL" .
git fetch origin ${{ gitea.ref }}:current-branch
git checkout current-branch
- name: Install Tools - name: Install Tools
run: | run: |