Repository navigation
ci(workflow-linter): look for SPDX in the leading comment block - #139
Conversation
The "Check SPDX headers" step only read line 1 of each workflow. Dependabot's
actions-lock bumps now prepend "# This workflow is managed by gh
actions-lock." above the existing header, so every workflow's SPDX line sits
on line 2 or later and lint-workflows fails on main ("missing SPDX header",
one error per file). Moving the SPDX line back to the top would last only
until the next Dependabot bump.
The check now accepts an SPDX-License-Identifier anywhere in the leading
block of comment and blank lines, before the first YAML line. A file whose
only SPDX line comes after YAML content, or that has none, still fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0132Cdz3iwk2QGKv2sUhhsye
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The failing finishingbot / release-readiness and rhodibot / rsr-compliance checks are not caused by this PR, so they won't be fixed here.
The check this PR targets is Workflow Linter / lint-workflows. Generated by Claude Code |
SonarCloud's quality gate failed this PR on two findings in the lines around the SPDX change: "Redirect this error message to stderr (>&2)" on the missing-SPDX and missing-permissions echo lines. Both lines are diagnostics, and the step's result still comes from its exit status, so sending them to stderr changes nothing about pass or fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0132Cdz3iwk2QGKv2sUhhsye
|



What was wrong
The SPDX check in
workflow-linter.ymlreads only line 1 of each workflow. Dependabot's actions-lock bumps prepend# This workflow is managed by gh actions-lock.above the existing header, so all 23 workflows onmainnow have their SPDX line on line 2 or later and fail the check. Moving it back to the top would only last until the next bump.Change
The "Check SPDX headers" step now accepts an
SPDX-License-Identifieranywhere in the leading block of comment and blank lines, before the first YAML line. A file whose only SPDX line comes after YAML, or that has none, still fails.Testing
I ran the step scripts locally against this branch:
name:both fail.Generated by Claude Code