ci: Use git clone instead of actions/checkout (runner lacks node)
Some checks failed
Some checks failed
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user