From 93c1a164c66d8647ffce313c7b441615e6e373b3 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Sat, 1 Jun 2024 05:58:28 +0100 Subject: [PATCH] Exclude JSON files from SPDX check Signed-off-by: Hanno Becker --- scripts/ci/lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/lint b/scripts/ci/lint index 7ba810495..ba2153668 100755 --- a/scripts/ci/lint +++ b/scripts/ci/lint @@ -66,7 +66,7 @@ echo "::endgroup::" check-spdx() { local success=true - for file in $(git ls-files -- ":/" ":/!:*LICENSE*" ":/!:.git*" ":/!:flake.lock"); do + for file in $(git ls-files -- ":/" ":/!:*.json" ":/!:*LICENSE*" ":/!:.git*" ":/!:flake.lock"); do if [[ $(grep "SPDX-License-Identifier:" $file | wc -l) == 0 ]]; then echo "::error file=$file,line=${line:-1},title=Missing license header error::$file is missing SPDX License header" success=false