From 033aaccd463d36c40152d5477a032f7a54c3088e Mon Sep 17 00:00:00 2001 From: user Date: Thu, 5 Feb 2026 12:02:15 +0100 Subject: [PATCH] ci: Use git clone instead of actions/checkout (runner lacks node) --- .gitea/workflows/lint.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index cccf358..f44c3fd 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -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: |