fix_preview
Preview safe automatic fixes for GitHub Actions workflow files as a unified diff, re-linted to confirm findings disappear without introducing new ones; no files are written.
Instructions
Show a unified diff of the safe automatic fixes for a workflow file (or every workflow under a
directory): add a top-level permissions: contents: read when every job is recognised as read-only,
move injectable ${{ github.event.* }} expressions out of run: scripts into step env: variables,
and replace ::set-output with $GITHUB_OUTPUT. The patched text is re-linted to prove the findings
disappear and none are introduced. Never writes the file: apply the diff yourself. Lists what needs a
manual change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |