* feat: add reusable notify-services workflow for release state changes
* notify-services: build the dispatch payload with jq
A tag may contain a double quote or backslash; interpolating it into the
JSON body made the dispatch fail with invalid JSON. Serialize the payload
with jq --arg/--argjson and send it with --data-binary @-.
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* feat(nightly): dispatch artcraft-services version bump after nightly publish
* feat(nightly): build, sign, and publish Linux packages and Flatpak OCI tags
* fix(nightly): build and publish Linux packages whenever Linux is enabled
* test(nightly): allow LINUX_SIGNING_KEY in publish-linux-packages
* fix(nightly): address CodeRabbit review findings on #345
* refactor(nightly): keep Linux packages inside v3 validation and isolate OCI push
* refactor(nightly): move website dispatch out of release-ref signer
* fix(nightly): resolve CodeRabbit and review findings on #345
* nightly: address review findings on Linux packages and bundle validation
* nightly: verify skopeo inline .oci.sig payload against manifest digest and docker-reference
* nightly: preserve aarch64 tarball handoff for Arch job and verify OCI config arch
* nightly: attest and admit Linux packages, add OCI freshness check, and tighten verify
* nightly: use real v-prefixed nightly tags, newest_nightly, and NIGHTLY.json schema in OCI check
* arch-package: build -nightly pkgname and binary for nightly tarballs
* arch-package: namespace all nightly paths for side-by-side install
* arch-package: fix sed delimiter, subcommand manpages, WMClass, and completion renames
* arch-package: use awk for desktop/metainfo rewrites and # delimiter for completions
* fix(nightly): validate signed Linux package receipts, gate package_formats, and harden OCI/Arch
* test(arch): run offline makepkg and pacman side-by-side install tests without Docker Hub egress
* fix(arch): replace --nodeps with explicit --assume-installed in pacman smoke tests and pin image digest
* Fix OCI release pagination and Arch smoke handoff
* Validate Linux format types and match Arch package identities literally
* Keep stable and nightly Arch package resources distinct
* Bind OCI copies to immutable nightly publication evidence
* Use the PhotoCraft Nightly wrapper archive for Arch packages
* Bind package attestations and limit signing key exposure
* Keep one end-to-end Linux release history test
* Preserve Arch launcher metadata and completion names
* Separate Nightly OCI publication from signing
* Check the OCI entry points after moving workflow logic
* Allow OCI publication from a verified release ancestor
* fix(gate-setup): use WebDAV sccache when SCCACHE_WEBDAV_ENDPOINT is set
* gate-setup: one WebDAV sccache prefix for every repository (sccache/<cache-version>), so dependency compiles hit across apps
---------
Co-authored-by: aiongg <aiongtaigi@gmail.com>
Ubuntu's MOTD news and Ubuntu Pro (ESM) hooks reach motd.ubuntu.com and
esm.ubuntu.com; TLS revocation checks for Amazon-issued certificates go
to *.amazontrust.com over plain HTTP. Every Harden-Runner allow list now
names them.
* ci: use StepSecurity's maintained actions
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.
* tests: find the FreeBSD VM, SonarCloud scan and install-action steps by their StepSecurity names
* sonarcloud: honour each repository's own sonar.cpd.exclusions
* sonarcloud: read sonar.cpd.exclusions with properties syntax and allow the ? wildcard
Block-mode Harden-Runner still flagged apt's lookups under these zones
(_https._tcp.mirrors.edge.kernel.org, _https._tcp.mirrors.dotsrc.org),
and apt failures are breaking CI across the org. Allow the whole zones on
443 next to the existing mirror hosts.
Harden-Runner blocked apt's SRV lookups (_https._tcp.mirrors.edge.kernel.org,
_https._tcp.mirrors.dotsrc.org): the allow lists name the hosts, not their
SRV records. configure-apt-mirrors now sets Acquire::EnableSrvRecords false;
apt connects to the hosts directly either way.
The FreeBSD workflow's VM action apt-installs QEMU on the host, which failed
during the ubuntu.com outage (sudo exit 100) and reached packages.microsoft.com.
Run configure-apt-mirrors first and drop the image's Microsoft source, which
the job never installs from.
Clears both open SonarCloud issues.
- `actions/draft-release/sign-linux.sh`: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`.
- `actions/refresh-contributors/refresh_contributors.py` `model()`: `([^<>]*)<([^<>]+)>` on the stripped trailer, with the name stripped after, in place of `\s*(.*?)\s*<([^<>]+)>\s*` (python:S8786, backtracking). Same result for every Git identity: a name can't hold `<` or `>`.
* ci: harden workflows with credential isolation, template injection defenses, and dependabot cooldown
- Add persist-credentials: false across all actions/checkout invocations
- Eliminate template injection by mapping matrix and input variables to env: in freebsd.yml, release.yml, and sonarcloud.yml
- Add 7-day cooldown to dependabot.yml to protect against supply-chain compromise of recently published releases
- Update test suite to validate hardened environment mappings
* ci: allow static.crates.io and registry endpoints in gate and windows-arm64 runners
- Add allowed-endpoints to ast-grep.yml matching test-ast-grep.yml
- Add pypi.org and files.pythonhosted.org to sonarcloud.yml for Python coverage
- Add packages.microsoft.com:443 and https mirrors to apt allowed-endpoints
- Set unvalidated reusable workflows (release, docker-build, gate, etc.) to audit mode
Adds step-security/harden-runner (v2.22.4, SHA-pinned) as the first step of
every job in the reusable and repo workflows, in egress-policy: audit mode.
Audit mode only records network, file and process activity; it blocks nothing.
Unsupported environments (containers, FreeBSD VM guests, ubuntu-slim) are
skipped by the action itself. Dependabot's github-actions group keeps the pin
current.
buildx pushes a by-digest output to one repository per invocation, so with two
imagerepositories only the last one received the manifest and the merge job failed
with "not found". Loop over the image list and assert the digests agree.
Builds every platform in `platforms` by digest into each repository in `images`,
then joins those digests into one multi-arch manifest per repository, logging in
to DOCR, GHCR or dhi.io only when an image needs it. It carries the inputs both
craft web images need: a custom Dockerfile and stage, build args, a GHA layer
cache, preinstalled-SDK pruning, and a hook for preparing large build contexts
such as the font sources.
Add allow-published (default false) to draft-release. When true, draft-release
permits uploading assets to an existing published release without failing or
attempting to convert it to a draft with --draft.
The runner's amd64 mirror (azure.archive.ubuntu.com) lags ports.ubuntu.com, and
Multi-Arch: same packages must be the same version on both architectures. When
ports publishes a linux-libc-dev before the mirror does, apt cannot install
libc6-dev:riscv64 and reports a dependency that "is not going to be installed",
which fails the riscv64 build until the mirrors happen to catch up.
Point amd64 at archive.ubuntu.com for main and updates as the action already
does for security, so both architectures always offer matching versions.
The paths input is checked to stay inside the checkout, but its original
spelling was then passed to ast-grep where option parsing still applied, so
a checked file named like an option (--update-all, --follow) changed how the
scan ran. Pass "--" before the path list in both scan invocations.
The metainfo path comes from the release archive. A symlink to an endless
stream such as /dev/zero, or a FIFO, made sed read without bound. Refuse a
metainfo entry that is not a regular file resolving inside staging, read at
most 1 MiB of it once, and parse the summary and homepage from that prefix.
A new optional LINUX_SIGNING_KEY secret (an unprotected OpenPGP signing subkey, from the
release environment) signs each Linux format the way its tools check it:
- rpm: embedded signature (rpmsign), for `rpm -K` and dnf/zypper gpgcheck
- deb: embedded _gpgorigin member (debsigs) and a detached .asc
- Arch: <file>.sig, which pacman looks for
- AppImage, tar.gz, zsync: detached .asc
- Flatpak bundle: signed commit and embedded public key (flatpak-bundle.sh, via the
scaffold's new step 4), so `flatpak install` verifies it, plus a detached .asc
- Flatpak OCI image: a containers/image signature for ghcr.io/<repo>@<digest>, which Flatpak
checks from its signature lookaside; the flatpak job records the pushed manifest for it
- SHA256SUMS.txt.asc over every release asset, and release-signing-key.asc
The draft-release action signs before computing checksums (embedded signatures change the rpm
and deb files) and verifies every signature against the exported public key. The new
import-signing-key action is shared by the flatpak and release jobs and refuses a key that
needs a passphrase. Without the secret, releases are published unsigned with a warning.
- A prerelease bundle (a version with `-`, as resolve-version marks it) gets no --repo-url: the
OCI index serves only the latest stable release, so Flatpak would replace the prerelease
with that older build. The generated script clears OCI_REPO for such a version and passes
${OCI_REPO:+--repo-url="$OCI_REPO"}.
- --verify passes only with the exact URL, the prerelease guard and the option on the active
build-bundle command; a commented-out command never matches, nor is it edited.
- A script that already sets OCI_REPO or its own --repo-url fails the scaffold instead of being
reported ready or overwritten.
- The OCI export assertion matches the whole line (CodeRabbit).
scaffold-flatpak-oci.sh now also adds --repo-url=oci+https://getartcraft.com to each app's
.flatpak build-bundle command, and --verify reports it. A bundle installed with that URL gets an
origin remote that updates from the OCI index, which points Flatpak at GHCR. Installing such a
bundle over an existing bundle install rewrites the existing origin's URL in place, so existing
users switch over on their next bundle update without a reinstall.
App repos' .github/workflows/ should only call craft-common-actions at @main, so CI
is the same across the Craft apps. gate.yml and the README said app-only jobs
(fuzzing, corpora, web builds, Windows installer probes) stay in the caller; they
now belong here as shared workflows or inputs, and move without being dropped.