Qlty (zizmor) security findings in the workflows that build and publish
every release:
- template-injection (128): ${{ ... }} pasted into a run: script is expanded
before the shell sees it, so a crafted workflow_dispatch input, tag or step
output becomes shell code. 251 expressions in 13 workflows now reach their
scripts through the step's env: and are used as quoted shell variables
($env:NAME in the PowerShell steps); ${{ env.X }} is plain $X. Where a
value sat in single quotes it is double-quoted now, and six unquoted ones
are quoted.
- unpinned-uses (20 in Qlty, 160 with current zizmor): every action is
pinned to a commit, with its version as a comment for Dependabot.
actions/dependency-review-action@v5 was a branch; it is v5.0.0.
- excessive-permissions (8): AppImage, Flatpak, mac, windows,
release-all and release-all-missing grant contents: read at the workflow
level, and each job that writes (a release asset, a git push, the docker
push, gh run rerun) is granted that on the job. Nothing used actions:
write except recover, which keeps it.
- artipacked (47 -> 13): actions/checkout gets persist-credentials: false,
except in the jobs that push with the checkout's credentials, directly or
through releases/version.sh, release-website.sh, release-charts.sh and
backfill-charts.sh.
actionlint with shellcheck reports 50 notes, the 56 before minus the six
quoted. Every PowerShell step parses (pwsh 7.6.7). Not run on GitHub.
tests/workflowHardening.test.cjs fails on an expression in a run script,
an unpinned action, a workflow-level write grant in a multi-job workflow,
or a checkout keeping credentials outside the pushing jobs, and runs
zizmor when it is installed. Eleven guards that pinned the old text, or ran
the extracted scripts with the expressions substituted, now pin the env
form and pass the values as the step's environment.
Thanks to Qlty and xet7 !
The v12.21 s390x snap failed. Attempt 1's Launchpad build stopped
because the build farm's own package proxy answered "501 Gateway error"
for libyaml-cpp0.8_0.8.0+dfsg-6build1_s390x.deb while every neighbouring
package downloaded. Attempt 2 submitted a new build that also stopped,
and snapcraft crashed fetching its log (MissingSchema "Invalid URL
'None'"). Attempt 3 then ran `remote-build --recover`, which reconnects to
that SAME stopped build, and was over in eight seconds: a finished build
cannot be recovered into a snap. Each attempt also reprinted every
earlier attempt's log, so attempt 1's failure appeared again under
attempt 2.
Now an attempt whose build ended "Stopped:"/"Failed:"/"Cancelled:" for
the architecture makes the next attempt submit a new build; recovery is
still what reconnects after a TLS/polling error or an auth failure, as
before. Each attempt prints only the build logs it downloaded, and says
so when it got none. A 5xx from the build farm's package proxy is named
as Launchpad infrastructure with the package that failed, so the next
step is a re-run rather than an edit of snapcraft.yaml.
tests/releaseSnapRecovery.test.cjs runs the real step with a stand-in
snapcraft: a stopped build is retried without --recover and then builds;
negatively, three stopped builds with the proxy error fail with the
infrastructure message, print attempt 1's log once, and are not called a
deterministic stage-package failure. Both new tests fail on the previous
workflow. Not run on GitHub Actions or Launchpad here.
Thanks to xet7 !
Recover the project repository used for submission, retry recipe creation while Launchpad indexes main, and reject incomplete snaps before remote cleanup. Run the compatibility wrapper inside Snapcraft's own environment.
Verified all 1173 Node suites sequentially, workflow lint and script syntax. Regression coverage exercises delayed refs, unrelated errors, recovery paths, invalid downloads and launcher argument handling without remote writes.
Thanks to xet7 !
The v11.85 logs show ARMHF failing during Launchpad polling after TLS EOF,
PPC64EL and S390X reaching the six-hour job cap while queued, and AMD64
successfully publishing to the Snap Store before its GitHub attachment hung.
Recover existing recipes before considering a new submission, and share one
five-hour waiter budget across attempts on every architecture. Prepare an
isolated complete source snapshot with Git metadata and logs outside the
project hash, and distinguish architectures so matrix recipes stay separate.
Move downloaded artifacts out before retrying recovery.
Bound GitHub snap attachments and verify remote names and sizes. Exercise
these paths with fixture repositories and mocked network commands, covering
TLS failures, absent recipes, denied credentials, queue timeouts, invalid
artifacts and failed uploads. Workflow parsing, shell syntax and Actionlint
pass. The full 1,172 Node suite sweep is verified with corrected guards rerun.
Live remote builds and publishing have not been run.
Thanks to xet7 !