Skip to content

chore: rename the binary, package and product to jactionlint - #36

Merged
jdx merged 6 commits into
mainfrom
rename-binary
Oct 5, 2026
Merged

jdx merged 6 commits into
mainfrom
rename-binary

Conversation

@jdx

@jdx jdx commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Finishes the rename started in #34, which only changed the module path and URLs. The executable, Go package and name in the docs were still actionlint.

Renamed

  • Executable actionlint -> jactionlint, cmd/actionlint -> cmd/jactionlint, and everything that follows from it: release archives (jactionlint_<version>_<os>_<arch>), the Homebrew cask name, the Docker entrypoint, -h/version output, the pre-commit hook ids (jactionlint, jactionlint-docker, jactionlint-system).
  • Go package package actionlint -> package jactionlint (90 files), with the qualifier in cmd/, scripts, the playground and docs/api.md.
  • man/jactionlint.1.ronn, scripts/download-jactionlint.bash (and its test), scripts/generate-jactionlint-matcher/, .github/jactionlint-matcher.json (problem matcher owner included).
  • The name in docs, README, help text, playground page, workflows, mise tasks, hk config and CONTRIBUTING. The label "jdx's actionlint" is now just jactionlint.

Compatibility, as chosen

  • Config: .github/jactionlint.yaml / .yml first, then the original .github/actionlint.yaml / .yml; user-global $XDG_CONFIG_HOME/jactionlint/ first, then $XDG_CONFIG_HOME/actionlint/. -init-config writes .github/jactionlint.yaml, and refuses if any of the four names exists. Documented in docs/config.md.
  • Inline ignore: both # jactionlint ignore=... and # actionlint ignore=... work.
  • New tests cover the precedence between all config names, the old global directory, -init-config with each name, and both ignore-comment spellings. One project fixture now uses the new config name; the rest keep the old one on purpose, so both are exercised.

Kept on purpose

  • Names of other people's things: reviewdog/action-actionlint, MegaLinter, the editor plugins (flycheck/flymake/Atom/Nova), trunk's built-in linter, anything under rhysd/, and the "upstream" attribution. CHANGELOG.md history, LICENSE.txt, docs/reference.md (links to the original articles) and test data are untouched.

Details worth knowing

  • Casks/actionlint.rb is deleted. It was GoReleaser output pointing at upstream's archive checksums and at release files that don't exist yet; the first release regenerates it as Casks/jactionlint.rb.
  • The download script now has JACTIONLINT_REPO and JACTIONLINT_NAME overrides. Its test uses them to run against upstream's releases (archives and binary are called actionlint there) until this repo has releases of its own.
  • The scheduled/CI behaviour is otherwise unchanged. Env var ACTIONLINT_VER (Docker build arg) is now JACTIONLINT_VER.
  • The playground still exposes the JS function runActionlint; it is internal to the page and I did not rename it.

Verified locally: go build, go vet, go test ./..., mise run lint (hk, including dog-fooding the renamed binary on this repo's workflows), docs/checks.md check, the playground's own tests, the wasm build, goreleaser check, the download-script test, and end to end with the built binary (new and old config names, -init-config).

Breaking for users: the binary name, the Go package identifier, the hook ids and the Docker entrypoint change. The config file and ignore-comment names keep working.

🤖 Generated with Claude Code


Note

Medium Risk
Wide rename touches releases, CI, and the public Go API/binary name, but config and ignore-comment compatibility limits migration pain for most users.

Overview
Renames the product from actionlint to jactionlint across the tree: the CLI binary and cmd/jactionlint, the Go package jactionlint, release artifacts (GoReleaser archives/checksums, Docker JACTIONLINT_VER, Homebrew cask), problem matcher, download script, man page, pre-commit hook IDs, and docs/help/branding.

Backward compatibility is preserved where it matters: repo and global config still load .github/actionlint.{yaml,yml} and $XDG_CONFIG_HOME/actionlint/ after the new jactionlint paths; inline ignores accept both # jactionlint ignore= and # actionlint ignore=. -init-config writes .github/jactionlint.yaml. Tests were added for config name precedence and legacy global config.

Release housekeeping: removes stale Casks/actionlint.rb; download-script tests can target upstream via JACTIONLINT_REPO / JACTIONLINT_NAME until this fork ships its own release layout.

User-facing break: binary name, go install path, hook IDs, and Docker entrypoint change; existing config and ignore comments keep working.

Reviewed by Cursor Bugbot for commit 1f62f98. Bugbot is set up for automated code reviews on this repo. Configure here.

Renames the executable, the Go package, the cmd directory, release archives,
the Docker entrypoint, the man page, the download script, the problem matcher
and the name used in the docs and help text. The config files
(.github/actionlint.yaml, $XDG_CONFIG_HOME/actionlint/) and the
'# actionlint ignore=' comment used by the original actionlint are still
accepted; the jactionlint names take precedence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 157 files, which is 57 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration
  • Configuration used: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 601ec746-5fc1-428f-9378-201e1ebf002e
📥 Commits

Reviewing files that changed from the base of the PR and between 34f436a and 1f62f98.

⛔ Files ignored due to path filters (8)
  • hk.pkl is excluded by !**/*.pkl
  • testdata/err/invalid_runner_labels.out is excluded by !**/*.out
  • testdata/err/issue280_runs_on.out is excluded by !**/*.out
  • testdata/examples/main.out is excluded by !**/*.out
  • testdata/examples/runner_label_check.out is excluded by !**/*.out
  • testdata/projects/config_secrets.out is excluded by !**/*.out
  • testdata/projects/config_secrets_empty.out is excluded by !**/*.out
  • testdata/projects/config_variables.out is excluded by !**/*.out
📒 Files selected for processing (157)
  • .gitattributes
  • .github/jactionlint-matcher.json
  • .github/workflows/ci.yaml
  • .github/workflows/codeql.yaml
  • .github/workflows/download.yaml
  • .github/workflows/matcher.yaml
  • .github/workflows/release-please.yaml
  • .github/workflows/release.yaml
  • .gitignore
  • .goreleaser.yaml
  • .pre-commit-hooks.yaml
  • CONTRIBUTING.md
  • Casks/actionlint.rb
  • Dockerfile
  • README.md
  • action_metadata.go
  • action_metadata_test.go
  • all_webhooks.go
  • all_webhooks_test.go
  • ast.go
  • ast_test.go
  • availability.go
  • availability_test.go
  • cmd/jactionlint/main.go
  • command.go
  • command_test.go
  • communique.toml
  • config.go
  • config_test.go
  • doc.go
  • docs/README.md
  • docs/api.md
  • docs/checks.md
  • docs/config.md
  • docs/install.md
  • docs/usage.md
  • error.go
  • error_test.go
  • example_test.go
  • example_your_own_rule_test.go
  • expr.go
  • expr_ast.go
  • expr_insecure.go
  • expr_insecure_test.go
  • expr_lexer.go
  • expr_lexer_test.go
  • expr_parser.go
  • expr_parser_test.go
  • expr_sema.go
  • expr_sema_test.go
  • expr_test.go
  • expr_type.go
  • expr_type_test.go
  • fuzz/check.go
  • fuzz/expr.go
  • fuzz/glob.go
  • fuzz/parse.go
  • glob.go
  • glob_test.go
  • inline_ignore.go
  • inline_ignore_test.go
  • linter.go
  • linter_test.go
  • man/jactionlint.1.ronn
  • mise.toml
  • parse.go
  • parse_test.go
  • pass.go
  • playground/README.md
  • playground/index.html
  • playground/index.ts
  • playground/main.go
  • playground/package.json
  • playground/test.ts
  • popular_actions.go
  • popular_actions_test.go
  • process.go
  • process_test.go
  • project.go
  • project_test.go
  • quotes.go
  • quotes_test.go
  • release-please-config.json
  • reusable_workflow.go
  • reusable_workflow_test.go
  • rule.go
  • rule_action.go
  • rule_credentials.go
  • rule_deprecated_commands.go
  • rule_deprecated_commands_test.go
  • rule_env_var.go
  • rule_env_var_test.go
  • rule_events.go
  • rule_expression.go
  • rule_glob.go
  • rule_id.go
  • rule_id_test.go
  • rule_if_cond.go
  • rule_if_cond_test.go
  • rule_job_needs.go
  • rule_local_action_checkout.go
  • rule_local_action_checkout_test.go
  • rule_matrix.go
  • rule_opt_in_test.go
  • rule_parallel_steps.go
  • rule_permissions.go
  • rule_pyflakes.go
  • rule_pyflakes_test.go
  • rule_require_commit_hash_test.go
  • rule_require_permissions.go
  • rule_require_permissions_test.go
  • rule_required_actions.go
  • rule_required_actions_test.go
  • rule_run_policy.go
  • rule_run_policy_test.go
  • rule_runner_label.go
  • rule_runner_label_test.go
  • rule_shell_name.go
  • rule_shellcheck.go
  • rule_shellcheck_test.go
  • rule_test.go
  • rule_timeout_check.go
  • rule_timeout_check_test.go
  • rule_workflow_call.go
  • rule_workflow_call_test.go
  • rule_workflow_run.go
  • rule_workflow_run_test.go
  • scripts/build-man.bash
  • scripts/check-checks/main.go
  • scripts/download-jactionlint.bash
  • scripts/generate-actionlint-matcher/README.md
  • scripts/generate-availability/README.md
  • scripts/generate-availability/main.go
  • scripts/generate-availability/testdata/ok.go
  • scripts/generate-jactionlint-matcher/README.md
  • scripts/generate-jactionlint-matcher/main.mjs
  • scripts/generate-jactionlint-matcher/object.mjs
  • scripts/generate-jactionlint-matcher/test.mjs
  • scripts/generate-jactionlint-matcher/test/escape.txt
  • scripts/generate-jactionlint-matcher/test/no_escape.txt
  • scripts/generate-jactionlint-matcher/test/want.json
  • scripts/generate-popular-actions/main.go
  • scripts/generate-popular-actions/testdata/go/deprecated.go
  • scripts/generate-popular-actions/testdata/go/fetched.go
  • scripts/generate-popular-actions/testdata/go/no_new_version.go
  • scripts/generate-popular-actions/testdata/go/outdated.go
  • scripts/generate-popular-actions/testdata/go/skip_both.go
  • scripts/generate-popular-actions/testdata/go/skip_inputs.go
  • scripts/generate-popular-actions/testdata/go/skip_outputs.go
  • scripts/generate-webhook-events/main.go
  • scripts/generate-webhook-events/testdata/ok.go
  • scripts/test-download-jactionlint.bash
  • testdata/format/sarif_template.txt
  • testdata/format/test.sarif
  • testdata/projects/config_variables/jactionlint.yaml
  • uses.go
  • uses_test.go

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Review on demand using usage pricing
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

jdx and others added 5 commits October 5, 2026 02:51
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…files

Files merged to main after this branch was cut (opt-in rules from #25 and #29)
still declared package actionlint, which no longer compiles next to the renamed
jactionlint package.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jdx
jdx merged commit 22ca03b into main Oct 5, 2026
19 checks passed
@jdx
jdx deleted the rename-binary branch October 5, 2026 02:55
@jdx jdx mentioned this pull request Oct 5, 2026
jdx added a commit that referenced this pull request Oct 13, 2026
## What

- **`--completion=bash|zsh|fish|powershell`** prints a completion
script. It is generated from the option table (`cliOptions`, so a new
option is completed without touching the generator) and from the values
the options accept: `--format`, `--profile`, `--min-severity`,
`--color`, `--fix`, `--online`, `--completion`, and the rule IDs of the
registry for `--ignore`, `--fix-rules` (comma separated list, completes
the last element) and `--explain`. Files complete for the file options
and, for the arguments, `*.yml`/`*.yaml`. Optional-value options
(`--color`, `--fix`, ...) complete as `--color=`.
- **`--explain RULE`** (also `--explain=RULE`) prints the summary,
group, profile, default level, whether there is a fix, the options
(type, default, summary), how to configure the rule and the ignore
comment, the URLs, and the section of `docs/checks.md` of the rule (with
its examples). `docs/checks.md` is embedded with `go:embed`, so there is
no generated file to keep in sync and nothing to conflict between PRs
that edit it; the section is found by the `DocsAnchor` of the rule. The
Dockerfile copies `docs/checks.md` into the build context for it (the
only place that builds from a partial copy of the tree). Unknown ID:
exit 2 with the closest ID; a retired ID names the rule it was merged
into.
- Docs: `docs/usage.md` (sections "Shell completion" and "Explain a
rule"), option table, man page.

Part of #167 (section 6 "Later": shell completions; #121 lists explain
as later; ideas ghalint #17, actionlint #27, zizmor #36 completions
part).

## Decisions to review

- I did not add a `usage` (usage.jdx.dev) spec: the four shell scripts
cover what was asked, and a spec is easy to add on the same option table
later (`completionOptions()`), but I did not want to ship a KDL output I
cannot keep validated in CI.
- The scripts embed the rule IDs of the binary (no call back into
jactionlint when completing, so completion is instant); the docs say to
regenerate after an upgrade.
- The size of the binary grows by `docs/checks.md` (about 400 KB). The
wasm playground does not reference the code, so the linker drops it (not
measured: I did not build the wasm).

## Tests

- `completion_test.go`: every shell mentions every option, every rule ID
and the values; the offered values are accepted by the parsers (profile,
severity, format, online mode, color, fix); syntax check with the
installed `bash -n`, `zsh -n`, `fish --no-execute` (skipped when not
installed); a behavior test drives the generated bash function with the
variables bash sets (`--format `, `--format=js`, `--profile pe`,
`--ignore unpinned-u`, a comma list for `--fix-rules`, `--pro`, `--col`,
...).
- By hand (not in CI): fish `complete -C` returns the values, rule IDs
and options; zsh loads the script with `compinit` and registers
`_jactionlint`; PowerShell 7 `TabExpansion2` completes `--format `,
`--profile=pe`, comma lists and rule IDs. zsh completion results were
not exercised interactively (it needs a pty).
- `explain_test.go`: the output for `missing-timeout`, online and opt-in
rules, errors, `--explain=ID`, the section extraction (fences, several
anchors in a row, the end at the next heading), and **every rule with a
`DocsAnchor` has its section in `docs/checks.md`** (this also guards the
anchors of the registry). `go vet`, `go test ./...`, `hk check --all`
pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> CLI-only additions (completion generation and read-only explain
output) with no changes to linting behavior; binary size grows from
embedding checks documentation.
> 
> **Overview**
> Adds **`--completion=SHELL`** (bash, zsh, fish, PowerShell) to print
installable completion scripts derived from `cliOptions` and the rule
registry—flags, enumerated option values, rule IDs (including
comma-separated lists for `--fix-rules`), and workflow YAML paths.
> 
> Adds **`--explain RULE`** for offline rule help: registry metadata,
config/ignore hints, and the matching section from **`docs/checks.md`**,
which is **`go:embed`**’d into the binary (Dockerfile updated so
container builds include that file).
> 
> Wires both flags in `command.go` before linting runs; documents them
in `docs/usage.md` and the man page. Large test suites cover script
generation, shell syntax/behavior, and per-rule explain output including
anchor alignment with `DocsAnchor`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
19a6b76. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added shell completion scripts for Bash, Zsh, Fish, and PowerShell,
including suggestions for options, values, rule IDs, and workflow files.
* Added `--explain` to display rule documentation, examples, and profile
details without a network connection. Unknown or retired rules provide
guidance.
* **Documentation**
  * Updated the usage guide and man page with details on both options.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
jdx added a commit that referenced this pull request Oct 13, 2026
…orgejo and jujutsu roots (#215)

Five small, independent commits (each has its docs and tests; review
them one by one).

| Commit | What | Item |
| --- | --- | --- |
| `feat(project)` | A directory with `.jj` (a Jujutsu workspace; a
secondary one has no `.git`) is a project root like one with `.git` |
actionlint#752 |
| `feat(format)` | `--show-doc-urls`: the URL of the rule under each
finding of the text format (` = docs: ...`; not with `oneline`) and in
the message of the `github` annotation | zizmor `--show-audit-urls` |
| `feat(pyflakes)` | `--ruff=CMD`: Python scripts are checked with `ruff
check --isolated --no-cache --select F --output-format json -` instead
of pyflakes; same rule ID `pyflakes`, message `ruff reported issue in
this script: 2:7: F821 ...`. The command must exist (exit 3) |
actionlint#439 |
| `feat(format)` | `--finding-context`: `events` and `permissions` (the
token of the job: its own, or else the workflow's; `{"*": "none"}` for
`{}`, `{"*":"write"}` for `write-all`; absent when not configured) on
each finding of `json`/`jsonl`/`sarif` (`properties`) | zizmor#1569 |
| `feat(config)` | Config key `platform: forgejo\|gitea`: `uses:
https://host/owner/repo[/path]@ref` is accepted for steps (form checked,
pinning policy applied, no GitHub metadata or online checks); on GitHub
(default) it stays the `invalid-uses` error with its message unchanged |
actionlint#698 |

Part of #167 (section 6 "Later": `--ruff`, Jujutsu workspaces; ideas
actionlint #26, #28, #33; zizmor #36 (doc links), #39).

## Skipped: `invalid-shell-name` should mention the `{0}` form
(actionlint#530)

I implemented it and reverted it: the message is one of the messages
that `TestCorrectnessProfileKeepsEveryErrorOfActionlint` asserts
verbatim against `testdata/examples/shell_name_validation.out` (an
original actionlint fixture), because the correctness profile promises
the same messages as actionlint ("Coming from actionlint"). A longer
message breaks that promise; the test has an `actionlintExceptions`
table which is empty today, and adding its first entry is a decision for
the maintainer, so I left the message alone. The doc of the shell name
check already has a `shell: 'perl {0}'` example. If you want it, it is a
three-line change plus the first exception entry.

## Decisions to review

- `--finding-context` and `--show-doc-urls` are opt-in: the fields would
otherwise change every `--format json` and SARIF golden and the output
of every consumer.
- `platform: forgejo` covers steps only (not `jobs.<id>.uses`), because
everything else that reads a `uses:` (popular-action data, online
lookups, typosquats) assumes GitHub; the docs say so. The pinning policy
patterns match `owner/repo` whatever the host is.
- `--ruff` replaces pyflakes when given, also when `--pyflakes` is
given; `--ruff=` (empty) is the same as not given.

## Tests

`project_jj_test.go`, `format_doc_urls_test.go`, `rule_ruff_test.go` (a
fake ruff for the arguments, stdin, mapping, broken output and replacing
pyflakes; the real ruff 0.17 was run through `JACTIONLINT_TEST_RUFF`:
F821, F401, a syntax error and a clean script),
`finding_context_test.go` (job vs workflow permissions, `{}`,
`write-all`, none configured, sarif, off by default, no context for
actions and `dependabot.yml`), `platform_uses_test.go` (forms, malformed
values, the policy, stays an error on GitHub, config validation and
`extends`). `go vet`, `go test ./...`, `hk check --all` pass.

## Expected follow-ups when merged with the other PRs

- The JSON Schema PR (`schema/jactionlint-config.json`,
`schema/jactionlint-output.json`) must learn the config key `platform`
and the output fields `events` and `permissions` (its tests name the
config key; the output fields are optional in the schema, which does not
forbid extra fields).
- The completions PR picks up `--ruff`, `--show-doc-urls` and
`--finding-context` from the option table by itself.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> New opt-in flags and `platform` change how `uses:` and structured
output behave for Forgejo/Gitea users; ruff replaces pyflakes when
enabled and must exist or the run exits 3.
> 
> **Overview**
> Adds several **opt-in CLI and config features** for richer output,
Python linting, non-GitHub platforms, and repo discovery.
> 
> **Output:** `--show-doc-urls` adds rule documentation links under text
findings and in GitHub annotation messages. `--finding-context` attaches
workflow `on:` **events** and job/workflow **token permissions** to each
finding in JSON, JSONL, and SARIF (via new `finding_context` plumbing on
`Error`).
> 
> **Python:** `--ruff` runs **ruff** (pyflakes `F` rules only, isolated)
instead of pyflakes for `shell: python` steps, still reporting rule ID
`pyflakes`.
> 
> **Config `platform`:** `forgejo` / `gitea` allow step `uses:
https://host/owner/repo@ref` with URL syntax and pinning checks;
`forbidden-uses` and `required-actions` treat URL uses as `owner/repo`.
Default GitHub behavior is unchanged.
> 
> **Projects:** Repository roots are detected with **`.jj`** (Jujutsu)
as well as `.git`.
> 
> Docs, man page, and tests cover each area.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
2d9a58b. 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant