From 9e0e21ab161dd8666c0142da505649aafa236bef Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Nov 2026 19:54:50 +0000 Subject: [PATCH] ci(lint): the SPDX rule stops at an indented workflow body also The SPDX check of the workflow linter reads the leading comment block of each workflow and stops at the first line of the body. Its stop condition was `/^[^#[:space:]]/`: a line that starts in column 1. A workflow with an indented body thus had no stop line, and a licence line after the body passed the check. The stop condition is now `/^[[:space:]]*[^#[:space:]]/`, the rule of the template (rsr-template-repo pull request 323). 1 line changes. The change was made with the gitbot-fleet recipe `fix-workflow-linter-spdx-rule.sh` (gitbot-fleet pull request 662), run by hand on this checkout. The fleet does not dispatch recipes at this time. Each of the 30 workflow files of this repository passes the new rule. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_0136P7ZmiFSCoB3UR9Kk56rK --- .github/workflows/workflow-linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow-linter.yml b/.github/workflows/workflow-linter.yml index 7106aa6..ba92b1c 100644 --- a/.github/workflows/workflow-linter.yml +++ b/.github/workflows/workflow-linter.yml @@ -44,7 +44,7 @@ jobs: [ -f "$file" ] || continue # actions-lock may prepend its own comment. Require the licence # in the leading comment block, before the workflow body. - if ! awk '/^# SPDX-License-Identifier:/ { found=1 } /^[^#[:space:]]/ { exit } END { exit !found }' "$file"; then + if ! awk '/^# SPDX-License-Identifier:/ { found=1 } /^[[:space:]]*[^#[:space:]]/ { exit } END { exit !found }' "$file"; then echo "ERROR: $file missing SPDX header" failed=1 fi