ci: Use git clone instead of actions/checkout (runner lacks node)
Some checks failed
Lint & Security / Security Flaw Analysis (push) Has been cancelled
Lint & Security / Shell Script Analysis (push) Has been cancelled
Lint & Security / C/C++ Static Analysis (push) Has been cancelled
Lint & Security / Secret Scanning (push) Has been cancelled

This commit is contained in:
user
2026-02-05 12:02:15 +01:00
parent 28db1f9fe3
commit 033aaccd46

View File

@@ -11,7 +11,10 @@ jobs:
name: C/C++ Static Analysis
runs-on: anvil
steps:
- uses: actions/checkout@v4
- name: Checkout
run: |
git clone --depth=1 --branch=${{ github.ref_name }} \
${{ github.server_url }}/${{ github.repository }}.git .
- name: Install cppcheck
run: |
@@ -31,7 +34,10 @@ jobs:
name: Security Flaw Analysis
runs-on: anvil
steps:
- uses: actions/checkout@v4
- name: Checkout
run: |
git clone --depth=1 --branch=${{ github.ref_name }} \
${{ github.server_url }}/${{ github.repository }}.git .
- name: Install flawfinder
run: |
@@ -46,9 +52,10 @@ jobs:
name: Secret Scanning
runs-on: anvil
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout
run: |
git clone --branch=${{ github.ref_name }} \
${{ github.server_url }}/${{ github.repository }}.git .
- name: Install gitleaks
run: |
@@ -64,7 +71,10 @@ jobs:
name: Shell Script Analysis
runs-on: anvil
steps:
- uses: actions/checkout@v4
- name: Checkout
run: |
git clone --depth=1 --branch=${{ github.ref_name }} \
${{ github.server_url }}/${{ github.repository }}.git .
- name: Install shellcheck
run: |