Repository navigation
ci(lint): the SPDX rule stops at an indented workflow body also - #98
Merged
Merged
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0136P7ZmiFSCoB3UR9Kk56rK
Contributor
|
Caution Review failedThe pull request is closed. Summary
Merge Risk:
|
hyperpolymath
marked this pull request as ready for review
November 10, 2026 20:01
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
The SPDX check of the workflow linter reads the leading comment block of each workflow file 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 has no such line, so a licence line after the body passed the check.The template repaired this in
rsr-template-repopull request 323. This repository still had the earlier form.Changes
.github/workflows/workflow-linter.yml, 1 line: the stop condition becomes/^[[:space:]]*[^#[:space:]]/.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, so a pull request by hand is the way.RSR Quality Checklist
Required
.envfiles includedunsafeblocks, banned functions. No source file changes.Testing
fix-workflow-linter-spdx-rule.sh --check: 1 target before the change, 0 after.Check SPDX Headersstep is identical to the step of the template atmain(0208563), 19 lines.tests/template-drift-recipes-test.sh): a file with a licence line after an indented body passes the old form and fails the new one.Not verified here: the
lint-workflowscheck in CI. It runs on this pull request.Generated by Claude Code