fix(ci): replace checkout action with native git commands
Bypass Node.js requirement in host execution mode by using system git.
This commit is contained in:
parent
fae7df9d30
commit
97df70a53f
|
|
@ -17,10 +17,11 @@ jobs:
|
||||||
name: Secret Detection (Gitleaks)
|
name: Secret Detection (Gitleaks)
|
||||||
runs-on: host
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Check Out Code
|
- name: Fetch Code
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
with:
|
git config --global --add safe.directory "$PWD"
|
||||||
fetch-depth: 0
|
git fetch --all
|
||||||
|
git checkout $GITEA_SHA
|
||||||
|
|
||||||
- name: Run Gitleaks Scan
|
- name: Run Gitleaks Scan
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue