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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user