Repository navigation
fix(docs): say that default-minutes and default-days turn on the --fix fix - #147
Merged
Merged
Conversation
…x fix The missing-timeout and dependabot-cooldown messages now name the option that enables the fix while it is not set. docs/usage.md shows the two config lines and docs/install.md notes mise's 24h minimum_release_age. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 13 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
jdx
added a commit
that referenced
this pull request
Oct 10, 2026
🤖 I have created a release *beep* *boop* --- ## [2.1.0](v2.0.2...v2.1.0) (2026-10-10) ### Features * add JACTIONLINT_ONLINE to turn the online checks on from the environment ([#155](#155)) ([a17b716](a17b716)) * add the workflow-secret-scope rule ([#136](#136)) ([2885719](2885719)) * explain why a finding has no fix ([#135](#135)) ([5a65169](5a65169)) * **parallel-steps:** flag reads of a background step's outputs before its wait ([#132](#132)) ([540e948](540e948)) * **pipeline-without-pipefail:** follow PIPESTATUS into a later check ([#145](#145)) ([40d579e](40d579e)) * report online check coverage in SARIF ([#140](#140)) ([ba654bb](ba654bb)) * revisit three v2 defaults from [#106](#106) ([#152](#152)) ([aa19b18](aa19b18)) ### Bug Fixes * allow runs.env in composite actions ([#123](#123)) ([e0a95fc](e0a95fc)) * **bot-conditions:** suggest advice that matches the caller's actual event ([#141](#141)) ([a8dad0e](a8dad0e)) * **cache-poisoning:** evaluate the caller's input expression for composite actions ([#139](#139)) ([48ba93d](48ba93d)) * **cache-poisoning:** treat release branch pushes as releases and know more publishers ([#150](#150)) ([981e623](981e623)) * **ci:** fix problem matcher test and run it on PRs ([#134](#134)) ([80b358a](80b358a)) * **concurrency-limits:** avoid caller group collisions and cancelling release workflows ([#142](#142)) ([3f543aa](3f543aa)) * **docs:** say that default-minutes and default-days turn on the --fix fix ([#147](#147)) ([1c43358](1c43358)) * **events:** accept field_added/field_removed for issues ([#130](#130)) ([c5ec59a](c5ec59a)) * **fix:** refuse risky unquoted template-injection fixes, fix flow-style artipacked ([#154](#154)) ([ac7f40a](ac7f40a)) * **migrate-ignores:** migrate the root action.yml, report skipped comments, keep version comments ([#146](#146)) ([fec2e75](fec2e75)) * **missing-permissions:** do not require permissions in reusable-only workflows ([#138](#138)) ([387fb67](387fb67)) * **parallel-steps:** allow redundant background: true inside a parallel group ([#131](#131)) ([b1023d8](b1023d8)) * **pipeline-without-pipefail:** ignore pipelines in process substitutions ([#143](#143)) ([f8b0184](f8b0184)) * reject the keys GitHub refuses on wait, wait-all, cancel and parallel steps ([#128](#128)) ([85ee9dd](85ee9dd)) * **rules:** scoped npm registries and same-branch guards (use-trusted-publishing, github-env) ([#151](#151)) ([92b5064](92b5064)) * **untrusted-checkout:** follow a fetched pull request into a script of the repository ([#149](#149)) ([3eed721](3eed721)) ### Performance Improvements * parse each expression once and lex without allocating a scanner ([#153](#153)) ([6910e8b](6910e8b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > <sup>[Cursor Bugbot](https://cursor.com/bugbot) is generating a summary for commit 858b0d1. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
jdx
added a commit
that referenced
this pull request
Oct 14, 2026
…nd the fix prerequisites to --explain (#269) Part of #121 (PR 1 of 3: item 2, the fixes that are unavailable). Where #121 stands: the maintainer's comment says items 1 to 4 are done (#113 to #118, #135, #147, #154, #136, #137, #146, #157) and #166 added the online coverage outside SARIF. What was left is item 2's gap below and the "Later" list. The three PRs: this one (no-fix reasons), then the semantic export of the caller facts, then incremental reporting and the historical timeout report. ## The gap this closes `Error.NoFix` (#135) exists, but only 8 rule sites used it. I ran every finding of the pedantic profile over `testdata/{err,examples,fix,ok}` and the 1500 workflows of `testdata/realworld/dataset.zip`, and looked for findings of a rule with `Fixable` that have neither a `Fix` nor a `NoFix`: 11 rules, thousands of findings. For those a consumer cannot tell "the fix is unavailable" from "advice only". ## What changed - Each place where a rule that can fix some findings reports one without a fix now says why, with the existing codes (no new code, the output schema is unchanged): `anonymous-definition`, `concurrency-cancels-release` (an expression), `concurrency-limits` (a pull request workflow where cancelling is not safe or the shape is not understood), `environment-file-redirect`, `bot-conditions`, `insecure-commands`, `missing-permissions`, `mutable-runner-label` (`option-required` with `mutable-runner-label.pin`: jactionlint does not choose an image), `obfuscation` (a `uses:` path), `pipeline-without-pipefail`, `self-repository`, `template-injection` (the run scripts of bash and sh that are not fixed), `unlocked-install` (cargo), `dependabot-execution`, `unused-ignore`. - **Advice only stays without a reason**, and I listed it instead of hiding it: `obfuscation` of an expression, the pedantic shell variable of `malformed-expression-delimiters`, `template-injection` outside `run:` (github-script, prompts, docker options), `unlocked-install` other than cargo, `dependabot-missing-actions-update` other than the local-actions variant, `concurrency-limits` of a workflow that is not only for pull requests (the existing `testdata/nofix` contract: whether a push may cancel is the person's choice), config `ignores`. - `TestFixableRulesExplainMissingFix` fails when a new site reports without a fix and without a reason unless it is in that list. `TestNoFixSites` has a case per code path. - `--show-fix-status` (opt-in like `--show-doc-urls`, so no golden changes): ` = fix: ... (apply it with --fix)`, `... (may change behavior: apply it with --fix=unsafe)` or ` = no fix (option-required): ...` under a finding of the text format (not `oneline`) and in the `github` message. Advice-only findings get no line. `json`, `jsonl`, `sarif`, `gcc` and `summary` are byte-identical with and without it (tested). - `--explain RULE` has a `Fix needs:` line for the rules whose fix needs an option or `--online` (`default-minutes`, `default-days`, `pin`, `--online`, `--fix=unsafe` for images). - `docs/usage.md` has a section that says what the four states look like in each format; `docs/api.md` and the man page are updated. No fixer changed: `NoFix` never changes what `--fix` does, and `--fix` output is the same (the fix tests and the source-write invariants pass). ## Testing `go vet ./...`, `go test -race ./...`, `hk check --all` pass locally. Corpus: the 11 rules above had thousands of findings without a reason before; after the change the only ones left are the advice-only kinds in the list (the test walks the testdata and every fifth file of the corpus; I also ran all 1500 once while writing it). ## Not done in this PR - Plain text without the flag is unchanged on purpose (the maintainer's comment says so; tools parse one line per finding). - Findings from custom Go rules keep whatever the rule sets. - No reason is attached to a finding of a rule without `Fixable` (nothing to explain). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Output and metadata only; automatic fix application is unchanged, and the new CLI flag is opt-in. > > **Overview** > Adds opt-in **`--show-fix-status`** so text and GitHub output can show whether each finding has a safe/unsafe fix (and how to apply it) or a **`no fix (code): reason`** line; advice-only findings stay silent. JSON/SARIF/oneline behavior is unchanged unless the flag is used on human-oriented formats. > > **Closes the `Error.NoFix` gap:** fixable rules now set **`NoFix`** (or leave advice-only findings without one) across many sites—permissions, concurrency, template-injection run scripts, runner labels, obfuscation paths, pipeline pipefail, unused ignores, and others—using existing `NoFixCode` values. **`RuleBase.noFixLast`**, **`fixStatusLine`**, and stricter **`posixShell`** reasons support this. > > **`--explain`** gains a **`Fix needs:`** line for rules that require options or `--online`. Docs (usage, API, man) describe the four fix states; tests lock the contract (`TestFixableRulesExplainMissingFix`, `TestNoFixSites`, fix-status formatting). **`--fix` behavior is unchanged.** > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 67e6e48. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Fixes #119
🤖 Generated with Claude Code
Note
Low Risk
Only diagnostic text and documentation change; fix behavior is unchanged.
Overview
When
missing-timeoutordependabot-cooldownreport issues but--fixcannot run becausedefault-minutes/default-daysare unset in.github/jactionlint.yaml, the CLI messages now append explicit guidance to set those rule options to enable auto-fix (jactionlint still does not pick the numbers itself).Docs (
usage.md,checks.md) and install (brief miseminimum_release_agenote) are aligned with the new wording; golden outputs and matcher fixtures reflect the longer messages andno_fixmetadata formissing-timeout.Reviewed by Cursor Bugbot for commit 8bb66cb. Bugbot is set up for automated code reviews on this repo. Configure here.