Skip to content

ci: deploy the playground to GitHub Pages - #33

Merged
jdx merged 2 commits into
mainfrom
pages
Oct 5, 2026
Merged

jdx merged 2 commits into
mainfrom
pages

Conversation

@jdx

@jdx jdx commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

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 to main that touch the playground, Go sources, mise.toml or the build script (and manually via workflow_dispatch), builds the site and deploys it with actions/upload-pages-artifact and actions/deploy-pages, pinned by SHA. The deploy job only runs in the jdx org.
  • mise run pages (scripts/build-pages.bash): builds main.wasm and the TypeScript, copies the assets into ./playground-dist and runs wasm-opt. This is the asset list and steps of the old playground/deploy.bash, which is removed along with its gh-pages branch flow.
  • wasm-opt needs --enable-nontrapping-float-to-int --enable-sign-ext in addition to --enable-bulk-memory now: Go 1.27's wasm output uses i64.trunc_sat_f64_u and the old flags fail validation.
  • mise run man now uses scripts/build-man.bash (ronn-ng under mise's Ruby 3.3) and generates only man/actionlint.1. HTML generation fails inside ronn and ronn-ng on current Ruby (undefined method 'strip' for an Array), and nothing links to the old man.html, so the site no longer includes it.
  • CONTRIBUTING.md and playground/README.md describe the new flow.

I ran mise run pages and mise run man locally and mise run lint passes. The deploy workflow itself can only run on main, 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-pages branch deployment with a GitHub Actions Pages workflow that builds ./playground-dist and publishes via upload-pages-artifact / deploy-pages (deploy job gated to the jdx org). Triggers on relevant main pushes or workflow_dispatch.

mise run pages (scripts/build-pages.bash) is the new local/CI build: playground wasm + assets into ./playground-dist, with wasm-opt using extra flags (--enable-nontrapping-float-to-int, --enable-sign-ext) for current Go wasm output. playground/deploy.bash is removed.

mise run man now runs scripts/build-man.bash: ronn-ng under Ruby 3.3, generating only man/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.

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>
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f9950273-9e78-4dd9-bed3-5004f21e9af3
📥 Commits

Reviewing files that changed from the base of the PR and between 736d914 and 8b11440.

📒 Files selected for processing (7)
  • .github/workflows/pages.yaml
  • CONTRIBUTING.md
  • mise.toml
  • playground/README.md
  • playground/deploy.bash
  • scripts/build-man.bash
  • scripts/build-pages.bash
  • 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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jdx
jdx merged commit ac50958 into main Oct 5, 2026
16 checks passed
@jdx
jdx deleted the pages branch October 5, 2026 02:18
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>
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