Repository navigation
Conversation
Replaces the manual playground/deploy.bash flow (push to gh-pages) with a workflow that builds the site with mise and deploys it with actions/deploy-pages. Adds mise tasks pages and man; man generation moves to scripts/build-man.bash. Co-Authored-By: Claude Opus 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 34 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (7)
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 Opus 5.5 <noreply@anthropic.com>
jdx
added a commit
that referenced
this pull request
Oct 5, 2026
Removes `rhysd/actionlint` references where they describe where this project lives, and keeps them where they are attribution or refer to someone else's things. **Changed** - Go module path `github.com/rhysd/actionlint` -> `github.com/jdx/jactionlint` in `go.mod`, every import, the `-ldflags -X` version stamping in the `Dockerfile` and `.goreleaser.yaml`, the generator tools and their golden files. The package name and the binary are still `actionlint`. **This is a breaking change for Go importers**, and it is what makes `go install github.com/jdx/jactionlint/cmd/actionlint@latest` work. - Repository, release, raw-content and CI-badge URLs in the docs, man page, scripts, Homebrew cask, `download-actionlint.bash` and workflows. - Playground links `rhysd.github.io/actionlint` -> `jactionlint.jdx.dev`, including the playground links in `docs/checks.md` (the generated payload is unchanged; `check-checks` passes). - Docker image: `rhysd/actionlint` on Docker Hub -> `ghcr.io/jdx/jactionlint`. `release.yaml` now logs in to GHCR with `GITHUB_TOKEN` (no Docker Hub secret needed) and pushes there. - Homebrew cask is published to this repo (`jdx/jactionlint`) by GoReleaser. - `generate.yaml` (weekly regeneration PR) is now enabled for `jdx/jactionlint` and assigned to `jdx`. - `docs/install.md` is rewritten around what this fork actually publishes (mise's `github:` backend, Homebrew cask, release binaries with attestation verification, download script, GHCR image, `go install`). The Chocolatey, Scoop, winget, pacman, Nix and asdf sections are removed because those distribute upstream's builds. - `jdx` is added next to the original copyright in `doc.go` and the man page, as in `LICENSE.txt`. **Removed** - The winget job in `release.yaml` (it publishes as `rhysd.actionlint`, which the fork cannot). - `scripts/bump-version.bash`. It hard-coded `rhysd/actionlint` artifacts, and it committed, tagged and pushed to `main` itself, which release-please replaces. Its job of refreshing version strings is now done by release-please `extra-files` (`x-release-please-version` markers in `.pre-commit-hooks.yaml`, `docs/usage.md` and `playground/index.html`); links to the docs in the README, man page and playground now point at `main` and need no version. This also settles the open "Release skips existing version files" finding on #4. - `CONTRIBUTING.md`'s release section is rewritten for release-please, communique and the Pages workflow. **Kept on purpose** - `LICENSE.txt`, `CHANGELOG.md` history, the README fork note, the install note, the sponsor blurb and the communique context (attribution of upstream). - Test data and examples that use `rhysd` as an author, third-party actions that happen to be by rhysd (`rhysd/action-setup-vim`, `rhysd/changelog-from-release`), the blog and gist links, and the screenshot images hosted in `rhysd/ss`. **Things to know** - The pre-commit `actionlint-docker` hook and `usage.md` point at `ghcr.io/jdx/jactionlint`, which is only populated by the first release made by this fork (the next release-please release). The default `actionlint` pre-commit hook builds from source and works now. - I verified `go build`, `go vet`, `go test ./...`, `mise run lint` (hk), the wasm build, a build with the `-X github.com/jdx/jactionlint.version` ldflags, and `goreleaser check`. I did not run a release. - This branch is stacked on #33 (Pages). Merge that first. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Breaking Go module path and changed release/Docker distribution paths; consumers and CI must update imports and image URLs until the first fork release publishes GHCR images. > > **Overview** > Rebrands the project from **rhysd/actionlint** to **jdx/jactionlint** across the Go module (`github.com/jdx/jactionlint`), imports, build `-ldflags`, docs, and distribution metadata. The CLI name stays **actionlint**; **Go importers must change module paths**. > > **Release & CI:** Drops manual `bump-version.bash` and the winget release job; documents **release-please** (with `extra-files` for version markers). Release Docker images move from Docker Hub to **`ghcr.io/jdx/jactionlint`**; GoReleaser/Homebrew cask target this repo. Weekly `go generate` PRs are scoped to `jdx/jactionlint`. > > **Docs & install:** Playground and doc links use **`jactionlint.jdx.dev`**; `docs/install.md` focuses on mise, Homebrew cask, GHCR, releases, and `go install` (upstream package-manager sections removed). `download-actionlint.bash` defaults to `jdx/jactionlint` with optional `ACTIONLINT_REPO`. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 34c793e. 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 Opus 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>
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.
Deploys the playground to https://jactionlint.jdx.dev/ (DNS CNAME to
jdx.github.io; the repo's Pages settings already have the custom domain and use the "GitHub Actions" source)..github/workflows/pages.yaml: on pushes tomainthat touch the playground, Go sources,mise.tomlor the build script (and manually viaworkflow_dispatch), builds the site and deploys it withactions/upload-pages-artifactandactions/deploy-pages, pinned by SHA. The deploy job only runs in thejdxorg.mise run pages(scripts/build-pages.bash): buildsmain.wasmand the TypeScript, copies the assets into./playground-distand runswasm-opt. This is the asset list and steps of the oldplayground/deploy.bash, which is removed along with itsgh-pagesbranch flow.wasm-optneeds--enable-nontrapping-float-to-int --enable-sign-extin addition to--enable-bulk-memorynow: Go 1.27's wasm output usesi64.trunc_sat_f64_uand the old flags fail validation.mise run mannow usesscripts/build-man.bash(ronn-ng under mise's Ruby 3.3) and generates onlyman/actionlint.1. HTML generation fails inside ronn and ronn-ng on current Ruby (undefined method 'strip' for an Array), and nothing links to the oldman.html, so the site no longer includes it.CONTRIBUTING.mdandplayground/README.mddescribe the new flow.I ran
mise run pagesandmise run manlocally andmise run lintpasses. The deploy workflow itself can only run onmain, so it is untested; it will run when this merges (or run it from the Actions tab). Once the certificate for the domain is issued, "Enforce HTTPS" can be turned on in the Pages settings.🤖 Generated with Claude Code
Note
Low Risk
Changes are CI/docs and build scripts for the playground site; no runtime linter or auth logic is touched.
Overview
Replaces the manual
gh-pagesbranch deployment with a GitHub Actions Pages workflow that builds./playground-distand publishes viaupload-pages-artifact/deploy-pages(deploy job gated to thejdxorg). Triggers on relevantmainpushes orworkflow_dispatch.mise run pages(scripts/build-pages.bash) is the new local/CI build: playground wasm + assets into./playground-dist, withwasm-optusing extra flags (--enable-nontrapping-float-to-int,--enable-sign-ext) for current Go wasm output.playground/deploy.bashis removed.mise run mannow runsscripts/build-man.bash: ronn-ng under Ruby 3.3, generating onlyman/actionlint.1(no HTML for the site). Docs in CONTRIBUTING.md and playground/README.md describe the new deploy and release checklist.Reviewed by Cursor Bugbot for commit 8b11440. Bugbot is set up for automated code reviews on this repo. Configure here.