ci: Fix license check false pass

The license check workflow quietly stopped working after commit
8f66f854c3. 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 <maureen.helm@analog.com>
This commit is contained in:
Maureen Helm 2023-10-18 18:58:17 -05:00 committed by Carles Cufí
parent 4e946262cb
commit 2e828eb6e7

View file

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