feat(lint): add auto-fix reusable workflow for formatters#26
Merged
DevSecNinja merged 2 commits intomainfrom Apr 25, 2026
Merged
feat(lint): add auto-fix reusable workflow for formatters#26DevSecNinja merged 2 commits intomainfrom
DevSecNinja merged 2 commits intomainfrom
Conversation
Agent-Logs-Url: https://github.com/DevSecNinja/.github/sessions/653627de-0f61-4e6c-acc6-587c175778d6 Co-authored-by: DevSecNinja <14926452+DevSecNinja@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add auto-fix mode argument for linters
feat(lint): add auto-fix reusable workflow for formatters
Apr 25, 2026
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.
Fixing CI formatting failures (dprint, yamlfmt, shfmt) currently requires running each tool locally and pushing a fix commit. This adds a reusable
autofix.ymlworkflow that runs all three formatters in write mode and commits the result back to the branch.Changes
.github/workflows/autofix.yml— New reusable workflow (on: workflow_call) with:mise-versionrequired input (ADR 0001 compliant)autofix-dprint,autofix-yamlfmt,autofix-shfmt), all defaulting totruecommit-messageinput (default:style: auto-fix formatting), passed via env var to prevent shell injectionworkflow-templates/autofix.yml— Caller template triggered viaworkflow_dispatch; developers run it manually on any branch needing formatting fixesworkflow-templates/autofix.properties.json— Template metadatadocs/design-decisions/0001-reusable-workflow-version-inputs.md— Addsautofix.ymlto the ADR compliance tableUsage
dprint checkdprint fmtyamlfmt -lintyamlfmtshfmt --diffshfmt --write