Repository navigation
CI(lint): Adopt the self-repository syntax - #175
Merged
Merged
Conversation
zizmor's self-repository audit (v1.30.0+) reports the older
workspace-relative 'uses: ./' form as a finding and wants GitHub's
self-repository 'uses: $/' syntax instead. Upstream actionlint
v1.7.12 predates that syntax and rejects it outright, so converting
the reference and swapping the actionlint hook have to land together:
either change on its own leaves one linter failing.
Swap the actionlint-py hook, pinned to upstream v1.7.12.24, for
kjanat/actionlint v1.17.0, an actively maintained fork that
understands '$/{path}'. Convert the local action reference in
.github/workflows/testing.yaml from './' to '$/'.
The fork deliberately rejects a bare '$/', because actions/runner's
TryParseSelfRepository helper refuses an empty path. GitHub's
server-side workflow parser does accept it: an action at the
repository root has no {path}, so a bare '$/' resolves and runs. Add
a path-scoped ignore in .github/actionlint.yaml for that one message.
The pattern quotes '$/' exactly, with no trailing wildcard, so
malformed extra-slash forms such as '$//' keep failing.
The fork also adds a cache-access policy check that upstream lacks,
which flags the reusable workflow call in openssf-scorecard.yaml made
under the low-trust branch_protection_rule trigger. The key it wants,
'cache-mode: read', is rejected by check-jsonschema 0.38.0, whose
vendored workflow schema predates it, so a second path-scoped ignore
suppresses the lint rather than writing a key another mandatory hook
refuses. That entry names its single callee and matches the pinned
SHA as [0-9a-f]{40}, so Dependabot bumps do not break it.
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
September 18, 2026 18:52
There was a problem hiding this comment.
🟡 Changes recommended
The bare $/ reference has no path and is rejected by the GitHub Actions runner.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adopts GitHub Actions self-repository references and updates linting support.
Changes:
- Switches to the forked actionlint release.
- Converts the local action reference to self-repository syntax.
- Adds scoped lint suppressions for unsupported edge cases.
File summaries
| File | Description |
|---|---|
.pre-commit-config.yaml |
Updates the actionlint hook. |
.github/workflows/testing.yaml |
Changes the local action reference. |
.github/actionlint.yaml |
Adds path-specific lint ignores. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
zxiiro
approved these changes
Sep 19, 2026
zxiiro
left a comment
Contributor
There was a problem hiding this comment.
🤖 Auto-approved by agent: reviewed workflow/code change for security and CI/CD impact, found low risk. Adopt $/ self-repo uses + pinned actionlint fork; no permission/secret changes.
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
Adopts GitHub's self-repository
uses: $/syntax for the local actionreference, and swaps the actionlint pre-commit hook for a fork that
understands it.
zizmor's self-repository audit (v1.30.0+) reports the older
workspace-relative
uses: ./form as a finding and wantsuses: $/instead. Upstream actionlint v1.7.12 predates that syntax and rejects it
outright, so the conversion and the hook swap have to land together —
either change on its own leaves one linter failing.
Changes
.pre-commit-config.yaml— replaceMateusz-Grzelinski/actionlint-py(upstream v1.7.12.24) withkjanat/actionlintv1.17.0, anactively maintained fork that understands
$/{path}. Pinned to commit08bb2c4f0d039744455b87aef1c647fb8b66d37b..github/workflows/testing.yaml— convert the local actionreference from
uses: ./touses: $/..github/actionlint.yaml— two path-scoped ignores, each with acomment explaining why it exists and when it can be removed.
Why the bare-
$/ignoreThe fork deliberately rejects a bare
$/, because actions/runner'sTryParseSelfRepositoryhelper refuses an empty path. GitHub'sserver-side workflow parser does accept it: an action living at the
repository root has no
{path}, so a bare$/resolves and runs.The ignore pattern quotes
$/exactly, with no trailing wildcard:A looser pattern would also suppress malformed extra-slash forms such as
$//, which must keep failing.Why the cache-access ignore
The fork adds a cache-access policy check that upstream lacks. It flags
the reusable workflow call in
openssf-scorecard.yaml, made under thelow-trust
branch_protection_ruletrigger, and wantscache-mode: reador
cache-mode: none.GitHub shipped
cache-modeon 2026-09-10 and SchemaStore's workflowschema already models it, but check-jsonschema 0.38.0 — the newest
release — vendors an older copy, so adding the key fails the
check-github-workflowshook. The lint is suppressed rather than writinga key that another mandatory hook rejects. The entry names its single
callee, so any other reusable workflow call added to that file must
account for cache access on its own merits, and it matches the pinned SHA
as
[0-9a-f]{40}so Dependabot bumps do not break it.Remove that entry once a check-jsonschema release vendors a schema
containing
cache-mode, then setcache-mode: readon the job.Validation
All run locally against this branch, all clean:
prek run --all-files— no failuresactionlint(kjanat fork v1.17.0) — no findingsuvx zizmor@1.30.1 --persona auditor --min-severity informational --offline --format plain .— no findingsaislop ci --changes— 0 errors, 0 warnings