Merge pull request '[macos-runner] Disable credential helper and askpass for checkout clone' (#36) from ci/gitea-actions/macos-runner into main

Reviewed-on: Loverde-Company-LTDA/Pedi-Foods-Skip#36
This commit is contained in:
2026-07-31 10:44:44 -03:00
3 changed files with 9 additions and 3 deletions

View File

@@ -25,9 +25,11 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
export GIT_TERMINAL_PROMPT=0 export GIT_TERMINAL_PROMPT=0
export GIT_ASKPASS=/bin/false
export SSH_ASKPASS=/bin/false
REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")"
git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . git -c credential.helper= -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" .
git checkout "${{ gitea.sha }}" git checkout "${{ gitea.sha }}"
- name: Set build number - name: Set build number

View File

@@ -25,9 +25,11 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
export GIT_TERMINAL_PROMPT=0 export GIT_TERMINAL_PROMPT=0
export GIT_ASKPASS=/bin/false
export SSH_ASKPASS=/bin/false
REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")"
git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . git -c credential.helper= -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" .
git checkout "${{ gitea.sha }}" git checkout "${{ gitea.sha }}"
- name: Verify ASC secrets - name: Verify ASC secrets

View File

@@ -20,9 +20,11 @@ jobs:
- name: Checkout - name: Checkout
run: | run: |
export GIT_TERMINAL_PROMPT=0 export GIT_TERMINAL_PROMPT=0
export GIT_ASKPASS=/bin/false
export SSH_ASKPASS=/bin/false
REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")"
git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . git -c credential.helper= -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" .
git checkout "${{ gitea.sha }}" git checkout "${{ gitea.sha }}"
- name: Run unit tests - name: Run unit tests