Skip to content

chore(lint): re-sync workflow linter from rsr-template-repo (#476) - #76

Open
hyperpolymath wants to merge 1 commit into
mainfrom
claude/linter-resync-rsr476
Open

hyperpolymath wants to merge 1 commit into
mainfrom
claude/linter-resync-rsr476

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What

Re-syncs .github/workflows/workflow-linter.yml and scripts/check-action-pinning.js byte-for-byte from rsr-template-repo main (hardened linter, rsr#476; script blob 9bd372e).

Why

lint-workflows fails on main at Check SPDX Headers. gh actions-lock prepends its own comment, so the old head -1 licence test no longer matches. rsr's merged linter checks the leading comment block instead, and delegates pinning to scripts/check-action-pinning.js, which resolves refs through actions.lock and fails closed.

What this does not fix (stated plainly)

The SPDX step will pass. The pinning step will still go red, now naming real lock gaps (not listed under their workflow in actions.lock):

  • ci.yml:51: actions/upload-artifact@v7.0.2
  • pages.yml:40: haskell-actions/setup@v2.12.1
  • static-analysis-gate.yml:126,260,341,433: actions/upload-artifact@v7.0.2
  • static-analysis-gate.yml:363,368,373: actions/download-artifact@v8.0.2

actions.lock is machine-generated, so I did not hand-edit it. It needs a gh actions-lock relock (owner PC or the standards applier). This PR is expected to stay red on that step until then.


Generated by Claude Code

… rsr-template-repo (#476)

lint-workflows fails on main at the SPDX step: the lock tool prepends its
own comment, so the head -1 test no longer finds the licence line.
rsr-template-repo's merged linter checks the leading comment block instead
and delegates pinning to scripts/check-action-pinning.js, which resolves
refs through actions.lock and fails closed.

Both files are byte-identical to rsr-template-repo main (script blob 9bd372e). No actions.lock edit: the hardened check names refs the lockfile does not resolve; those need a gh actions-lock relock, not a hand edit.
@gitnotebooks

gitnotebooks Bot commented Dec 5, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8dd43ef7-84f9-4554-9585-bb9b067811f2
Commits

Reviewing files that changed from the base of the PR and between 7649e57 and 2bb90a2.

Files selected for processing: 2

  • .github/workflows/workflow-linter.yml
  • scripts/check-action-pinning.js
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

lint-workflows is red on this PR as expected, and it is not a fault in the re-sync.

  • Check SPDX Headers: now passes (it was the failing step on main).
  • Check SHA-Pinned Actions: fails on the 9 real lock gaps listed in the description: actions/upload-artifact@v7.0.2, actions/download-artifact@v8.0.2 (ci.yml, static-analysis-gate.yml) and haskell-actions/setup@v2.12.1 (pages.yml). The old inline grep never examined these.

actions.lock is machine-generated, so I am not hand-editing it. It needs a gh actions-lock relock, after which this check should go green. Leaving the PR as a draft until then.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review December 5, 2026 09:26
@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 5, 2026 09:26
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-05T09:26:04.215658Z
We couldn’t complete this review. Comment @codex review to try again.
2bb90a2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants