Skip to content

eBPF-based security platform

ci: Skip tracked symlinks in check-spdx.sh

William Findlayf713a97610d2
diff --git a/.github/scripts/check-spdx.sh b/.github/scripts/check-spdx.sh
index 92176fac..48f6ead2 100755
--- a/.github/scripts/check-spdx.sh
+++ b/.github/scripts/check-spdx.sh
@@ -188,6 +188,8 @@ expr_of() {
: >"$work/exprs"
git ls-files | while IFS= read -r f; do
excluded "$f" && continue
+ # A tracked symlink points into the tree, where its target is checked.
+ [ -L "$f" ] && continue
case "$f" in
vendor/*)
printf '%s\n' "$f" >>"$work/vendor" ;;