fix(ci): ignore actionlint false positive for code-quality scope#244
Merged
Conversation
MegaLinter's bundled actionlint (<=1.7.12) doesn't yet recognize the `code-quality` permission scope that GitHub Code Quality coverage requires callers to grant, so it fails consumer workflows that use it (e.g. ksail's ci-go). Pass `-ignore code-quality` to actionlint until it catches up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the validate-go-project reusable workflow to avoid a known actionlint false positive when consumer repositories use the newer code-quality permission scope (used for GitHub Code Quality coverage), which MegaLinter’s bundled actionlint version does not yet recognize.
Changes:
- Adds
ACTION_ACTIONLINT_ARGUMENTS: -ignore code-qualityto MegaLinter’s environment invalidate-go-project. - Documents the rationale inline so the workaround is easy to remove once MegaLinter/actionlint is updated.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
🎉 This PR is included in version 4.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
What
Adds
ACTION_ACTIONLINT_ARGUMENTS: -ignore code-qualityto thevalidate-go-projectMegaLinter step.Why
MegaLinter bundles
actionlint v1.7.12, which doesn't yet know thecode-qualitypermission scope (added for GitHub Code Quality coverage). Sincevalidate-go-projectlints consumer workflows, any Go repo that grantscode-quality: writein its own workflow (e.g. ksail'sci-gocaller) fails MegaLinter with a falseunknown permission scope "code-quality"error. This ignores that one false positive until actionlint catches up. Discovered on ksail#4893.zizmor finding-neutral; yamllint clean.
🤖 Generated with Claude Code