From 2e828eb6e7d4ea16b0f40f167ebaf5aa6b5cd7f9 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Wed, 18 Oct 2023 18:58:17 -0500 Subject: [PATCH] ci: Fix license check false pass The license check workflow quietly stopped working after commit 8f66f854c3238d67de7c64da86a3de18bf3e4683. Upgrading the checkout action changed default behavior to only fetch one commit instead of all history for all branches, which caused an uncaught fatal error in the scancode action: fatal: ambiguous argument 'origin/main..': unknown revision or path not in the working tree. The scancode action then completed successfully having not actually checked anything. Fix this by setting the checkout action fetch depth to 0, similar to other workflows. Signed-off-by: Maureen Helm --- .github/workflows/license_check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index dd4e1928a2d..0efedb13489 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Checkout the code uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Scan the code id: scancode uses: zephyrproject-rtos/action_scancode@v4