Fix self-repository uses: syntax (resolves code scanning findings) - #4
Merged
Conversation
Resolves the three zizmor/self-repository code scanning findings (https://github.com/rubyatscale/rubyfmt-action/security/code-scanning/1,2,3) by switching 'uses: ./' to 'uses: $/' for the three composite-action references in this repo's own test jobs, per: https://github.blog/changelog/2026-07-30-reference-same-repository-actions-with-self-repository-syntax/ actionlint (rhysd/actionlint#711) doesn't understand this syntax yet, so its step now ignores that specific known-false-positive message.
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
Resolves the three open code scanning findings (
zizmor/self-repository) at https://github.com/rubyatscale/rubyfmt-action/security/code-scanning..github/workflows/ci.ymlreferencing this repo's own composite action via the older workspace-relativeuses: ./syntax. GitHub added a dedicated "self-repository" syntax (uses: $/...) for this, which zizmor now recommends since it isn't subject to runtime filesystem state.test-formatted,test-unformatted,test-macosjobs) fromuses: ./touses: $/.actionlintdoesn't understand this syntax yet (rhysd/actionlint#711, still open) and misparses it as an incomplete repository reference. Added a scoped-ignorefor that specific message so actionlint keeps checking everything else; left a comment pointing at the upstream issue so it's easy to remove later.Test plan
zizmor --persona=regular .(v1.30.0, the version that introduced this audit) reports no findings.actionlintpasses locally with the added-ignore.uses: $/actually resolves this repo's composite action at runtime (this is a very new GitHub Actions feature, so this PR's own CI run is the real-world check).main's nextzizmorscan doesn't find them again.