Files
Pulse/.github/workflows/retry-release-convergence.yml
rcourtman 69354b9d20 Confine release credentials to the release environment
Release, signing and registry secrets are repository-wide, so a workflow run
on any branch can read them, including a pushed proposal branch before any
review. The release train now dispatches on post-merge release-dispatch/*
branches that only the release dispatcher App can create, so these secrets
can move into a `release` environment that admits only main and those
branches.

Every job that reads the update signing key, Apple, SignPath or Windows
signing material, Docker Hub credentials or WORKFLOW_PAT now declares
`environment: release`; the browser update qualification job declares `infra`
for its tailnet credentials. The public license verification key is not a
credential and stays repository-wide.

check_workflow_trust.py enforces this. It reads job structure with a YAML
loader that rejects duplicate keys and scans expressions across lines,
comments and quoted `}}`, matching secret names case-insensitively. Release
credentials need the literal release environment, demo and tailnet
credentials need a deployment environment (the demo workflow's runtime choice
only in its own job), dynamic secrets[...] access and workflow-level secret
env are refused, and a push workflow that reads any secret must admit exactly
`branches: [main]`. A test that asserted an any-branch push workflow could
read WORKFLOW_PAT now asserts the opposite.
2026-10-26 00:30:23 +00:00

50 lines
1.8 KiB
YAML

name: Retry Release Convergence
run-name: Reconcile release convergence debt
# A committed release is never returned to draft because a mutable surface is
# temporarily unavailable. Re-run current controls, or dispatch them afresh
# when the failed run predates a repair, so the complete convergence workflow
# reacquires the global lease and replays every idempotent surface. Successful
# surfaces are safe to repeat; retrying only failed jobs would bypass the lease.
#
# The hourly schedule is the retry mechanism. There is deliberately no
# workflow_run trigger: create-release.yml and this reconciler dispatch
# convergence with GITHUB_TOKEN, and GitHub does not deliver workflow_run for
# runs started that way. A workflow_run job only ever fired for convergence
# runs an operator started by hand; between 29 Aug and 24 Oct 2026 it never
# fired at all, while dozens of failed bot-dispatched runs were recovered by
# this schedule.
on:
schedule:
# Reconcile the current stable and preview channel heads hourly.
- cron: '37 * * * *'
workflow_dispatch:
permissions:
actions: write
contents: read
concurrency:
group: retry-release-convergence
cancel-in-progress: false
jobs:
reconcile_channel_heads:
environment: release
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout current reconciliation controls
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Reconcile current channel heads
env:
GH_TOKEN: ${{ github.token }}
PRO_REPOSITORY_TOKEN: ${{ secrets.WORKFLOW_PAT }}
run: >-
python3 scripts/release_control/reconcile_release_convergence.py
--repository "${GITHUB_REPOSITORY}"
--latest