From bdb87f8bbf14cce0aaa947bd1f9e422b8c3330be Mon Sep 17 00:00:00 2001 From: cdunning Date: Wed, 11 Mar 2026 09:56:00 -0700 Subject: [PATCH] ci: fix license check by marking workspace as safe directory Git refuses to run in container jobs due to "dubious ownership" (container runs as root but workspace is owned by the runner user). Adding safe.directory config before running check_license.py. Signed-off-by: cdunning --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af1e598..eee06a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,9 @@ jobs: run: python scripts/cpplint.py - name: Check license headers - run: python scripts/check_license.py + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + python scripts/check_license.py - name: Check inline samples are up to date run: python test/tools/inline_samples.py --check