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)
|
||||
runs-on: host
|
||||
steps:
|
||||
- name: Check Out Code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Fetch Code
|
||||
run: |
|
||||
git config --global --add safe.directory "$PWD"
|
||||
git fetch --all
|
||||
git checkout $GITEA_SHA
|
||||
|
||||
- name: Run Gitleaks Scan
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue