Repository navigation
feat: publish a signed release on tag push - #793
Merged
Merged
Conversation
Adds a Release workflow that fires on any v* tag and delegates to the shared reusable release workflow, which verifies the tag against appinfo/info.xml, builds with ocsign as the signer and publishes the resulting tarball as a GitHub release. contacts has never had a release pipeline: the newest GitHub release is v1.5.4 (2018) and the marketplace still serves 1.5.5, which declares max-version="10" and therefore cannot be installed on ownCloud 11 (#791). Signing is mandatory on ownCloud 11+, so the release has to be produced by a workflow holding the signing key. No Makefile change is needed. The appstore target already gates signing on CAN_SIGN and calls $(sign) --path=...; the reusable workflow overrides both on the make command line. artifact-glob is deliberately narrowed to the appstore tarball. "make dist" also builds build/artifacts/source/contacts.tar.gz from the whole working tree - 20 entries under tests/, .github/ and vendor-bin/ - which the workflow's development-files assertion rejects, and both tarballs are named contacts.tar.gz so they would collide as release assets. Signed-off-by: Thomas Müller <[email protected]>
The appstore target copies l10n wholesale, so l10n/.tx/config - which is tracked in git - ends up inside the packaged app. Nothing published that artifact before, so it was harmless; now that a tag push signs and releases it, the file would be covered by appinfo/signature.json and an administrator could not delete it without breaking `occ integrity:check-app`. That is the failure mode owncloud/core#41824 was about. firewall's appstore target prunes the same directory the same way. Signed-off-by: Thomas Müller <[email protected]>
oc-tmueller
force-pushed
the
feat/signed-release-on-tag
branch
from
September 22, 2026 21:24
e3483c3 to
b82b0d1
Compare
kw-tmueller
approved these changes
Sep 22, 2026
oc-tmueller
added a commit
that referenced
this pull request
Sep 22, 2026
Cuts 1.6.0, the first release since 1.5.5 (2018-12-11). - CHANGELOG.md: [Unreleased] closed out as [1.6.0], link refs updated - sonar-project.properties: sonar.projectVersion 1.0 -> 1.6.0 - package.json: version 1.5.4 -> 1.6.0, two releases behind appinfo/info.xml needs no change - it already declares 1.6.0, bumped in 5c9b81e along with the min-version/max-version 11 dependency and the PHP 8.3 requirement, but never tagged. The release workflow added by #793 enforces that the tag matches <version>. Dropping ownCloud 10 and PHP < 8.3 gets its own Removed section rather than a bullet in the middle of Changed: it is the one fact in this changelog that can leave an administrator with a disabled app after an upgrade, so it should not be easy to skim past. For the same reason #775 is under Security rather than Fixed - it replaces a bundled XML parser carrying unpatched advisories, and reads as a rename otherwise. The #794 entry says explicitly that the regression it fixes never reached a release. 1.5.5 predates #775 by eight years, so without that note an administrator reading these release notes would conclude their current install has a broken contact list and treat 1.6.0 as urgent. The dependency line names the development toolchain explicitly: every package.json change since 1.5.5 was a devDependency. The one bundled runtime library that does move is @xmldom/xmldom, via #794, and that is called out on its own line. Signed-off-by: Thomas Müller <[email protected]>
oc-tmueller
added a commit
that referenced
this pull request
Sep 23, 2026
…ng (#798) The release workflow has never executed: no tag has been pushed since it landed in #793. The first run would therefore be the real v1.6.0 tag, which is a poor place to find out that ocsign will not build, that a signing secret is malformed, or that `make dist` behaves differently on ubuntu-latest than in a local container. The reusable workflow already takes a `dry-run` input that skips the tag-vs-info.xml check and the release creation and uploads the tarball as a workflow artifact instead, but nothing in the org has ever used it - every release.yml caller is tag-push only, so it was unreachable here. Adds workflow_dispatch and derives dry-run from the ref. The condition is written as the positive invariant "only a push of a v-tag publishes" rather than "a dispatch is a dry run", so that a trigger added here later cannot inherit real-release behaviour by default: a `push: branches: ['v*']` would otherwise publish a release from a branch head. A dispatch never publishes, including a dispatch against a tag. A v-tag push is unaffected. inputs.dry-run is not used because on a tag push the inputs context is empty, and passing '' to the callee's boolean input is an error. What a dispatch then exercises, per the callee: the signing-secret presence check (not gated by dry-run), the ocsign build, `make dist` with CAN_SIGN, the schema-v2 / leaf-CN signature assertions, and the development-files assertion. Only the tag check and release creation are skipped. Note that workflow_dispatch is only offered once the trigger is on the default branch, so the first rehearsal is possible after this merges - this branch cannot rehearse itself. Signed-off-by: Thomas Müller <[email protected]> Co-authored-by: Thomas Müller <[email protected]>
oc-tmueller
added a commit
that referenced
this pull request
Sep 23, 2026
Cuts 1.6.0, the first release since 1.5.5 (2018-12-11). - CHANGELOG.md: [Unreleased] closed out as [1.6.0], link refs updated - sonar-project.properties: sonar.projectVersion 1.0 -> 1.6.0 - package.json: version 1.5.4 -> 1.6.0, two releases behind appinfo/info.xml needs no change - it already declares 1.6.0, bumped in 5c9b81e along with the min-version/max-version 11 dependency and the PHP 8.3 requirement, but never tagged. The release workflow added by #793 enforces that the tag matches <version>. Dropping ownCloud 10 and PHP < 8.3 gets its own Removed section rather than a bullet in the middle of Changed: it is the one fact in this changelog that can leave an administrator with a disabled app after an upgrade, so it should not be easy to skim past. For the same reason #775 is under Security rather than Fixed - it replaces a bundled XML parser carrying unpatched advisories, and reads as a rename otherwise. The #794 entry says explicitly that the regression it fixes never reached a release. 1.5.5 predates #775 by eight years, so without that note an administrator reading these release notes would conclude their current install has a broken contact list and treat 1.6.0 as urgent. The dependency line names the development toolchain explicitly: every package.json change since 1.5.5 was a devDependency. The one bundled runtime library that does move is @xmldom/xmldom, via #794, and that is called out on its own line. Signed-off-by: Thomas Müller <[email protected]> Co-authored-by: Thomas Müller <[email protected]>
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.
What
.github/workflows/release.yml— a Release workflow that fires on anyv*tag anddelegates to
owncloud/reusable-workflows/.github/workflows/release.yml,which verifies the tag against
appinfo/info.xml, builds withocsignas the signerand publishes the tarball as a GitHub release.
Makefile— prunel10n/.txfrom the appstore package before it is signed.Why
contacts has never had a release pipeline. The newest GitHub release is
v1.5.4(2018) and the marketplace still serves 1.5.5, whose
info.xmldeclaresmax-version="10"— so the app cannot be installed on ownCloud 11 (#791).masteralready declares
1.6.0withmin-version="11" max-version="11"and PHP 8.3 (#756);what is missing is a signed release. Signing is mandatory on ownCloud 11+, so the
release has to be produced by a workflow holding the signing key.
No Makefile change is needed for signing
The
appstoretarget already gates signing onifdef CAN_SIGNand calls$(sign) --path=…; the reusable workflow overrides both on themakecommandline, substituting
ocsignforocc integrity:sign-app. Unlike calendar (#1367),this Makefile has no
occconfig shuffle to remove.Why
artifact-globis narrowedmake distalso buildsbuild/artifacts/source/contacts.tar.gzfrom the wholeworking tree. Both tarballs are named
contacts.tar.gz, so they would collide asrelease assets — and the source one carries 20 entries under
tests/,.github/andvendor-bin/, which the workflow's development-files assertion rejects outright.Verified locally:
Why
l10n/.txis prunedappstorecopiesl10nwholesale, so the trackedl10n/.tx/configends up inside thepackaged app. Nothing published that artifact before, so it was harmless; now that a tag
push signs and releases it, the file would be covered by
appinfo/signature.jsonand anadministrator could not delete it without breaking
occ integrity:check-app. That is thefailure mode owncloud/core#41824 was about. The workflow's development-files check greps
only for
.git,.github,tests,buildandvendor-bin, so it would not have caughtthis.
firewall's appstore target prunes the same directory the same way, and the pruneruns before
$(sign).Verification
make appstorein aphp8.3/node22container, with a stub signer so the recipe isexercised end to end:
Reaches the
tarstep and touches no config. The tarball has 192 entries, 110 of themunder
l10n/, no.tx, and no development files. The local developer path viaocc integrity:sign-appis unaffected.Prerequisite before tagging
SIGNING_KEY/SIGNING_CERT/SIGNING_CHAINdo not exist on this repo yet — contactswas left out of the 2026-07-28 rollout and has no code-signing certificate at all. Until
they are set, a tag push fails at the workflow's "Check signing secrets are present" step
rather than publishing an unsigned release. Enrollment is under way:
owncloud/developer-certificates#83, challenge file in #792.