Fails the build when .github/workflows/actions.lock stops matching the
workflows, or when a locked pin no longer verifies upstream, so a stale or
tampered lockfile cannot go unnoticed between dependency updates.
Mutable action tags are a supply-chain risk: a moved tag runs different code
without a diff. Every workflow action is now pinned through
.github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync
or tampered one fails instead of running.
## Summary
The hourly `Update Craft Release Versions` workflow has failed every run
since 2026-11-07 with:
```
Error: Could not find ARTCRAFT_STUDIO_VERSION in github_download_links.ts.
```
The declaration exists. The workflow decided it was missing by comparing
`github_download_links.ts` before and after the replace. #352 set
`ARTCRAFT_STUDIO_VERSION = "0.41.1"` by hand, and 0.41.1 is the latest
Studio release, so the replace is a no-op and the check throws.
The run stops before updating the launcher or any Crafting App. That
freezes `crafting-app-releases.ts` and everything built from it,
including the Flatpak OCI index at `/index/static`. Right now the index
still serves Craft Launcher 0.15.0, but 0.19.0 is published to GHCR as
`stable-x86_64`.
Related: #361 (that issue's original missing-assets error was fixed by
#371, which exposed this one).
## Change
Test for the declaration with the pattern, as the launcher and app
updates already do, then replace.
## Verification
I ran the workflow's `github-script` body locally against live release
data from `gh api`:
- Before the change: fails with the error above.
- After the change: completes and bumps the launcher to 0.19.0 and every
Crafting App to its latest release.
- With the `ARTCRAFT_STUDIO_VERSION` line removed: still fails with
"Could not find ARTCRAFT_STUDIO_VERSION".
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Bug Fixes**
* Fixed release version updates so an already-current version is
recognized correctly. The update process now reports an error only when
the version declaration is actually missing, preventing a false failure
when no change is needed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Chores**
* Updated the automation integrations used for pull request creation and
container registry sign-in.
* Existing workflow settings and registry credentials remain unchanged.
Some container build workflow steps remain inactive.
* These maintenance updates do not change the app’s features or
behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have
it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Chores**
* Release checks no longer require portable ZIP, web, or FreeBSD builds.
The setup EXE and universal DMG remain required, along with the other
previously required release assets.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
The deployment wait job now polls for up to 120 seconds after Cloudflare
reports a failed, timed-out, or cancelled build, allowing a retry to
start. Queued or running retries and successful builds reset the failure
timer; persistent failures still stop the job. Successful builds must
still pass the live endpoint check.
Validation: actionlint, Bash syntax checking, and simulated terminal
failures, the 119/120-second boundary, recovery, and retry timer resets.
artcraft-services is the only large craft project without coverage in
SonarCloud: it runs on automatic analysis, which can't import coverage
reports. This moves it to the shared `craft-common-actions` SonarCloud
workflow, as artcraft and the other repos use.
- `.github/workflows/sonarcloud.yml`: runs `cargo llvm-cov` over the
workspace with `SQLX_OFFLINE=true` and `--features
storyteller-web/skip_database_tests`, the way `.claude/rules/testing.md`
says to test without MySQL. It uses the `sqlx-offline` /
`cargo-features` inputs from the now-merged
storytold/craft-common-actions#195 and calls the shared workflow at
`@main`. Only `SONAR_TOKEN` and `SONAR_CLOUD_PAT` are forwarded
explicitly; other repository secrets are not inherited.
- `sonar-project.properties` takes over the vendor exclusions from
`.sonarcloud.properties`, which only automatic analysis reads (that file
is removed). JS/TS are left out of coverage, as in artcraft, since only
Rust coverage is published.
⚠️ **Before merging, turn off Automatic Analysis** for
`storytold_artcraft-services` (SonarCloud › Administration › Analysis
Method). While it's on, SonarCloud rejects CI scans.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Chores**
* Updated automated code quality checks for main-branch updates, pull
requests, and manual runs.
* Adjusted analysis settings for vendored code and JavaScript and
TypeScript coverage reporting.
* These changes affect development workflows; no application features or
behavior changed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Validation: reviewed craft-common-actions#195 and its passing checks
before merging it. Local actionlint and git diff whitespace checks pass
for this caller update.
Deployments now pull from registry.digitalocean.com/artcraft, so the workflow
logs in to DOCR and emits tags for both repositories. GHCR stays as the mirror
for existing consumers; the DOCR push uses a DIGITALOCEAN_TOKEN secret with
write access to the registry.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Added support for serving the website and shared-media pages through
Cloudflare, including video and audio previews and media embeds.
* Added Linux package repository downloads and metadata for APT, RPM,
Pacman, and Flatpak.
* Added redirects for legacy tutorial links.
* Pricing pages can display a campaign-specific header when opened with
the matching referral link.
* **Chores**
* Added automated deployment for development-branch pushes and manual
runs. Deployment reports an error if the required hook is missing or the
request fails.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary
- Add ArtCraft Studio `0.41.1` (`artcraft-v0.41.1`) to the `/download`
page for Linux, Windows, and macOS and to the Flatpak OCI
(`ai.artcraft.app`), APT (`artcraft`), RPM (`artcraft`), and Pacman
(`ai.artcraft.app`) package repositories.
- Keep ArtCraft Studio out of the `/apps` Craft Apps catalog while
serving its packages in the Linux repositories.
- Update the `Update Craft Release Versions` workflow to also keep
`artcraft-studio.ts` and `download-links.ts` synchronized with the
latest published `artcraft-vX.Y.Z` release once all required assets are
present.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Added Linux downloads for ArtCraft Studio, with recommended options
based on detected platform and architecture.
* Added ArtCraft Studio to Linux package catalogs and Flatpak listings,
with links to package repositories and other available downloads.
* Updated platform information across the download page and Studio
promotions to include Linux.
* Updated the advertised Windows and macOS download versions to 0.41.1.
* **Tests**
* Added coverage for Linux download links, package formats, and
supported architectures.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary
- Add Debian and RHEL UBI to Linux package repository CI coverage.
- Exercise APT verification on Debian and DNF verification on RHEL,
including repository signatures, checksums, downloads, and package
installation.
- Keep Ubuntu, Fedora, openSUSE, Arch, and Flatpak coverage.
## Validation
-
-
Container tests against a deployed repository were not run locally.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Tests**
* Expanded Linux distribution test coverage to include Debian and RHEL
alongside Fedora.
* Debian checks now validate package downloads, SHA-256 checksums,
installation, and executable availability.
* AlmaLinux checks now validate ArtCraft RPM discovery and downloads,
checksums, installation with DNF, and executable availability.
* The combined test target now includes Debian and AlmaLinux.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Every repository was published with Trusted: yes, gpgcheck=0 and
SigLevel = Optional TrustAll, and a LINUX_SIGNING_KEY stored in a shape
openpgp.js could not read made every signature route 404 while the same pages
still told clients the metadata was signed.
Accept the shapes the key is stored in — armor with real newlines, the same
block escaped onto one line, base64 with or without padding, and matching
quotes — decoding base64 before normalizing so a base64 of an escaped key
still parses. A key that is protected or cannot sign is refused at load, so
the repositories stay consistently unsigned instead of advertising a
Signed-By nothing can verify.
Sign every artifact per request and point the clients at the key: apt
Release/InRelease with Signed-By, repomd.xml with gpgcheck and repo_gpgcheck,
artcraft.db with SigLevel = Required DatabaseRequired, the key at
repodata/repomd.xml.key where zypper looks for it, Arch package .sig redirects
to the release asset, and the Flatpak OCI lookaside signature that GPGKey and
SignatureLookaside ask for. When signing is configured, withhold RPM and
pacman packages whose release publishes no signature rather than advertise
something dnf and pacman reject.
Test that against the deployed site instead of a server started in CI: pull
requests run against the Netlify deploy preview and main against production,
and REQUIRE_SIGNED fails a run when the deployment publishes no key rather
than quietly passing with trusted repositories. dnf imports its own gpgkey
before the metadata is checked, zypper imports repodata/repomd.xml.key itself,
and Flatpak's lookaside is verified against the registry digest because
released flatpak does not take one. libzypp rejects hostnames containing "--",
so zypper alone reaches a preview through the script's loopback forwarder,
which streams from the deployment; every other package manager talks to it
directly.
Cover the repository builders, signature routes, key normalization and
withholding in Playwright.
## Summary
Follow-up to #339, which merged before these fixes were pushed.
- Require a signing key that actually loads before advertising signed
repositories, and check it before generating metadata in every signature
route.
- Make the apt keyring readable by `_apt` after download.
- Limit the signed-index notice to the APT/DNF/zypper/pacman tabs.
- Key package metadata by its SHA-256 digest, and keep estimated Arch
metadata out of the shared cache.
- Clear `LINUX_SIGNING_KEY` in the unsigned tests and add route-level
signature tests.
- Run the release-version workflow hourly and squash-merge the PR it
creates, since the repository does not have GitHub's native auto-merge
setting enabled.
## Verification
- `npm run typecheck`
- `CI=1 npx playwright test tests/linux-repos.spec.ts --grep-invert
"mobile"` — 23 passed
- The browser-only mobile layout test could not run because Playwright
Chromium is not installed in this environment.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Linux repository setup guides now explain when package metadata is
signed and distinguish signed repository details from unsigned preview
metadata.
* Arch package metadata now identifies estimated values, and updated
package uploads can use refreshed metadata.
* **Bug Fixes**
* APT setup instructions now set the downloaded signing key’s
permissions correctly.
* Repository signature links now return a clear not-found response when
signing is unavailable, instead of attempting to serve an unavailable
signature.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Codebuff <noreply@codebuff.com>
## Summary
- Bump ArtCraft Launcher and every Craft app in the release catalog to
its latest stable GitHub release (validated against the catalog's
required release assets).
- Add MaterialCraft to the `Update Craft Release Versions` workflow; it
was missing from the app list, so the daily job could never update it.
- Make the workflow's catalog lookup match quoted slug keys such as
`"craft-anything"`. The current regex only matches bare keys, so the
scheduled run throws `Could not find the release entry for
craft-anything` before finishing.
- Raise the `/linux` catalog test expectation to include MaterialCraft,
which already ships Linux packages.
## Versions
| Package | Old | New |
|----------------|--------|--------|
| launcher | 0.13.0 | 0.14.0 |
| photocraft | 0.19.0 | 0.20.1 |
| vectorcraft | 0.20.0 | 0.21.0 |
| filmcraft | 0.16.0 | 0.17.0 |
| lightcraft | 0.17.0 | 0.18.0 |
| pdfcraft | 0.17.0 | 0.18.1 |
| effectcraft | 0.20.0 | 0.21.0 |
| designcraft | 0.16.0 | 0.17.0 |
| figcraft | 0.14.0 | 0.15.0 |
| texturecraft | 0.2.0 | 0.3.0 |
| materialcraft | 0.1.0 | 0.1.0 |
| wordcraft | 0.14.0 | 0.15.1 |
| soundcraft | 0.16.0 | 0.17.0 |
| deckcraft | 0.14.1 | 0.15.0 |
| cadcraft | 0.16.0 | 0.17.0 |
| gridcraft | 0.15.0 | 0.16.0 |
| craft-anything | 0.2.0 | 0.3.0 |
## Verification
- `npm run typecheck` passes.
- `npx playwright test tests/linux-repos.spec.ts
tests/flatpak-oci.spec.ts`: 25 passed. The remaining mobile layout test
could not run here because Chrome is not installed in this environment.
## Summary
This PR proves out zero-bandwidth native Linux package repositories for
Debian/Ubuntu (`apt`), Fedora/RHEL/openSUSE (`dnf`/`rpm`), and Flatpak
(OCI), using HTTP 302 redirects to stream binary packages directly from
GitHub Releases.
It adds a dedicated instructions and documentation page at **`/linux`**
for Linux users with 1-click copyable setup commands across
distributions and architectures.
### Multi-Architecture Support
- **`x86_64` (amd64)**
- **`aarch64` (arm64)**
- **`riscv64` (risc-v64)**
### User-Facing Linux Repository Page: `/linux`
A dedicated, statically prerendered instructions page at `/linux`
([src/app/linux/page.tsx](frontend/apps/artcraft-website-next/src/app/linux/page.tsx))
features an interactive distribution selector:
- **Ubuntu & Debian (APT):** Modern DEB822
(`/etc/apt/sources.list.d/artcraft.sources`) and classic `artcraft.list`
setup commands.
- **Fedora & RHEL (DNF/RPM):** `dnf config-manager addrepo` and direct
`/etc/yum.repos.d/artcraft.repo` setup.
- **openSUSE (Zypper):** `zypper addrepo` setup.
- **Flatpak (OCI Remote):** `flatpak remote-add` and `.flatpakref`
setup.
- **Available Packages Catalog:** Interactive table showing package
names (`artcraft-launcher`, `pdfcraft`), versions, supported CPU
architectures, and copyable install commands.
- **Integrity Notice:** Explains SHA-256 cryptographic checksum
verification and preview trust configuration.
- **Navigation:** Linked from the site footer, `sitemap.xml`, and the
Linux standalone download card on `/apps`.
### Endpoints Implemented
| Endpoint | Format / Role | Description |
|---------------------------------------------------|-----------------------|----------------------------------------------------------------------|
| `/linux` | Web Page | Interactive Linux repository setup guide and
package catalog |
| `/apt/artcraft.list` | APT sources.list | Ready-to-use one-line repo
configuration (`trusted=yes`) |
| `/apt/artcraft.sources` | DEB822 | Modern deb822 sources format
(`Architectures: amd64 arm64 riscv64`) |
| `/apt/dists/stable/Release` | Debian Release | Index listing Packages
and Packages.gz checksums for all arches |
| `/apt/dists/stable/main/binary-{arch}/Packages` | Debian Packages |
Package control metadata with exact SHA-256 and byte size |
| `/apt/dists/stable/main/binary-{arch}/Packages.gz`| Gzipped Packages |
Gzipped package index for fast transfer |
| `/apt/pool/main/{slug}/*.deb` | Binary Deb | 302 redirects to
`github.com/storytold/{slug}/releases/download/...` |
| `/rpm/artcraft.repo` | YUM/DNF Repo | Ready-to-use repository config
(`gpgcheck=0`) |
| `/rpm/repodata/repomd.xml` | RPM Master Index | Unified master
metadata declaring primary metadata index |
| `/rpm/repodata/primary.xml.gz` | RPM Primary Metadata | Unified XML
package metadata with checksums, files, and dependencies |
| `/rpm/packages/*.rpm` | Binary RPM | 302 redirects to
`github.com/storytold/{slug}/releases/download/...` |
| `/rpm/[arch]/repodata/repomd.xml` | Per-Arch RPM Index | Master
metadata supporting DNF `baseurl=/rpm/$basearch` |
| `/rpm/[arch]/repodata/primary.xml.gz` | Per-Arch Primary XML |
Filtered XML package metadata for the target architecture |
| `/rpm/[arch]/packages/*.rpm` | Per-Arch Binary RPM | 302 redirects
supporting DNF `baseurl=/rpm/$basearch` |
### Verification
1. **Ubuntu 24.04 (Noble) Container Test:**
- Multi-arch dpkg (`arm64`, `riscv64` added to `amd64`).
- `apt-get download` succeeded for all 3 architectures with full SHA-256
verification.
2. **Fedora 41 Container Test:**
- Tested both `baseurl=/rpm` and `baseurl=/rpm/$basearch`.
- `dnf download` succeeded for `pdfcraft` and `artcraft-launcher` across
`x86_64`, `aarch64`, and `riscv64` with full SHA-256 verification.
3. **Automated Checks:**
- `npm run typecheck` passes with zero errors.
- `npx playwright test tests/linux-repos.spec.ts` passes all 8 tests.
- `npm run build` succeeds (`55/55` pages statically prerendered
including `/linux`).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
- **New Features**
- Added a Linux downloads guide with setup instructions for Flatpak,
APT, DNF, and Zypper, including supported distributions and
architectures.
- Added APT and RPM repositories for supported Linux architectures, with
package listings, repository metadata, and package downloads.
- Added installation commands, repository integrity information, and
standalone download details to the guide.
- Added links to the Linux guide and repository setup instructions from
relevant download pages and the site footer.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Problem
The launcher download link on the website was still pointing to version
0.3.2, even though version 0.4.1 was already available.
Solution
Update the Craft Launcher and Crafting Apps version numbers to their
latest stable releases.
Add a GitHub Actions workflow to automatically check release tags across
all 14 repositories.
Automatically create a pull request when new versions are detected,
updating the existing PR if one is already open.
Run the workflow daily at 08:00 UTC or manually when needed.
Testing
Tested the workflow in my fork:
[Workflow
run](https://github.com/DanielSvoboda/artcraft-services/actions/runs/38948140339)
[Generated pull
request](https://github.com/DanielSvoboda/artcraft-services/pull/1)
The workflow successfully detected the latest versions and updated
crafting-app-releases.ts.
Repository Configuration
To allow the workflow to create and update pull requests, enable Allow
GitHub Actions to create and approve pull requests under:
Settings → Actions → General → Workflow permissions
The workflow already declares the required contents: write and
pull-requests: write permissions.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
## Summary
* **Updates**
* Updated the listed versions for Craft Launcher and Craft apps:
PhotoCraft (0.9.0), VectorCraft (0.12.0), FilmCraft, LightCraft,
PDFCraft, and DesignCraft (0.8.0), EffectCraft (0.10.0), FigCraft
(0.6.0), and WordCraft, SoundCraft, DeckCraft, CADCraft, and GridCraft
(0.7.0). Craft Launcher is now listed at 0.5.1.
* **New Features**
* Release versions are checked daily or on demand, and validated catalog
updates are submitted for review.
* **Documentation**
* Added guidance for registering Craft apps in the release catalog and
automated checks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
The frontend migrated to pnpm workspaces in #1606, which introduced
"workspace:*" dependencies. npm cannot resolve that protocol, so the
macOS and Windows publish workflows fail at "npm ci" with
EUNSUPPORTEDPROTOCOL, breaking production release builds on main.
Add a pinned pnpm setup step and replace the npm install block with
"pnpm install --frozen-lockfile". Verified the frozen install resolves
cleanly against the committed pnpm-lock.yaml.
---------
Co-authored-by: bflatastic <bombayapirat@gmail.com>