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