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: |