mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-30 17:42:32 +01:00
Stable continuity run 33592377446 was rejected before any job ran: its read-only caller invoked a reusable job requesting contents:write. Extract the unchanged smoke execution into a body that inherits the caller budget, keeping the existing draft-capable entry point and its write-level draft GET access. Continuity now calls the shared body directly without broadening its token. Pin the permission boundary in regression coverage; do not relax immutable-release admission. Change-source: pulse-maintainer
105 lines
3.7 KiB
YAML
105 lines
3.7 KiB
YAML
name: install.sh Smoke (Release Assets)
|
|
|
|
# End-to-end smoke that exercises the documented Proxmox-LXC / systemd
|
|
# install flow against staged or published GitHub Release assets. Across v6 rc.1 → rc.5
|
|
# the published install.sh asset was actually the agent installer (rejecting
|
|
# --version) and the README's pinned signature key did not match the
|
|
# pipeline's actual signing key, so anyone running the secure-install
|
|
# snippet from the README hit one of two silent failure modes for ~30 days.
|
|
# The validate-release.sh content checks catch the asset-identity drift at
|
|
# build time; this workflow proves the documented commands actually install
|
|
# and boot Pulse end-to-end in a clean Linux environment.
|
|
#
|
|
# Triggers:
|
|
# - workflow_dispatch: run manually against any tag for verification.
|
|
# - workflow_call: callable from create-release.yml so future releases get
|
|
# the gate automatically once it's stable.
|
|
#
|
|
# What it does:
|
|
# 1. Downloads install.sh + install.sh.sshsig + the linux-amd64 tarball
|
|
# from the authenticated draft-release API during a release cut, or from
|
|
# the public release URL during a manual post-publication check.
|
|
# 2. Extracts the README's pinned ed25519 key and runs the README's exact
|
|
# ssh-keygen -Y verify command. Catches README/key drift.
|
|
# 3. Boots a privileged systemd Debian 12 container, runs
|
|
# `bash install.sh --archive <tarball> --enable-auto-updates` inside it
|
|
# (avoids the install.sh self-refetch loop that --version triggers; the
|
|
# re-fetched bytes are the same as what we already validated).
|
|
# 4. Waits for systemd pulse.service to be active and hits /api/health
|
|
# from inside the container.
|
|
# 5. Confirms /api/health reports the expected version.
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tag:
|
|
description: 'Release tag (e.g., v6.0.0-rc.6)'
|
|
required: true
|
|
type: string
|
|
version:
|
|
description: 'Version without v prefix (e.g., 6.0.0-rc.6)'
|
|
required: true
|
|
type: string
|
|
repository:
|
|
description: 'owner/repo to pull the release from. Defaults to the workflow repository.'
|
|
required: false
|
|
type: string
|
|
default: ''
|
|
asset_source:
|
|
description: 'Asset source: staged for a draft release, or published for the public release URL.'
|
|
required: false
|
|
type: string
|
|
default: 'published'
|
|
release_id:
|
|
description: 'Draft release ID. Required when asset_source is staged.'
|
|
required: false
|
|
type: string
|
|
default: ''
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Release tag (e.g., v6.0.0-rc.6)'
|
|
required: true
|
|
type: string
|
|
version:
|
|
description: 'Version without v prefix (e.g., 6.0.0-rc.6)'
|
|
required: true
|
|
type: string
|
|
repository:
|
|
description: 'owner/repo to pull from (leave blank for current repo)'
|
|
required: false
|
|
type: string
|
|
default: ''
|
|
asset_source:
|
|
description: 'Asset source'
|
|
required: false
|
|
type: choice
|
|
options:
|
|
- published
|
|
- staged
|
|
default: published
|
|
release_id:
|
|
description: 'Draft release ID (required for staged assets)'
|
|
required: false
|
|
type: string
|
|
default: ''
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: install-sh-smoke-${{ inputs.tag }}
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
smoke:
|
|
permissions:
|
|
# Unpublished draft assets require write-level repository access.
|
|
contents: write
|
|
uses: ./.github/workflows/install-sh-smoke-body.yml
|
|
with:
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
repository: ${{ inputs.repository }}
|
|
asset_source: ${{ inputs.asset_source }}
|
|
release_id: ${{ inputs.release_id }}
|