Repository navigation
chore(ci): register release workflows on main - #56
Conversation
Copy release-related workflows and their required composite actions from dev to main so GitHub registers the workflow_dispatch triggers in the Actions tab. Workflows: prepare-release, release, post-release Actions: setup-env, build-image, test-image, test-integration Refs: #55
gerchowl
left a comment
There was a problem hiding this comment.
Review findings
High – Release can proceed before all required CI checks are complete
In release.yml, the "Find and verify PR" step only rejects FAILURE/ERROR conclusions and requires at least one SUCCESS. Checks that are still PENDING, IN_PROGRESS, QUEUED, or null are silently ignored — so a release can proceed while checks are still running.
Suggestion: Also reject when any check has a non-terminal conclusion:
CI_PENDING=$(echo "$STATUS_ROLLUP" | jq '[.[] | select(.conclusion == null or .conclusion == "" or .conclusion == "PENDING")] | length')
if [ "$CI_PENDING" != "0" ]; then
echo "ERROR: PR #$PR_NUMBER has $CI_PENDING checks still in progress"
exit 1
fiMedium – Test actions can silently switch the workspace commit during release
Both test-image/action.yml and test-integration/action.yml run actions/checkout internally without a ref input. In release.yml, the build-and-test job first checks out finalize_sha, but these internal checkouts resolve to the event's GITHUB_SHA (HEAD of the dispatched branch), not the pinned SHA. If the release branch receives commits between dispatch and test execution (e.g., from the sync-issues workflow triggered during finalize), tests may run against different code than the build.
Suggestion: Add a ref input to both composite actions and pass finalize_sha from the calling workflow, or remove the internal checkout and rely on the job-level checkout.
Low – install-just input is defined but not honored
In setup-env/action.yml, the install-just input defaults to 'true' but the "Install just" step has no if condition — it always runs. Every other optional tool (podman, node, devcontainer-cli, bats) has an if: guard; this one is missing.
Fix: Add if: inputs.install-just == 'true' to the step.
Low – macOS stat fallback is dead code
In build-image/action.yml, the tar verification step uses stat -f%z ... || stat -c%s .... The -f%z form is macOS syntax. Since this action only runs on ubuntu-22.04 runners, the macOS branch always silently fails. Not a bug, but misleading.
Suggestion: Remove the macOS fallback or add a comment explaining it's there for local testing.
Add bare-minimum workflow YAML files (ci.yml, codeql.yml, scorecard.yml, security-scan.yml) to enable GitHub to recognize and register security and quality workflows. Each includes minimal job structure with checkout. Refs: #55
Summary
prepare-release.yml,release.yml,post-release.yml) and 4 required composite actions (setup-env,build-image,test-image,test-integration) fromdevtomainworkflow_dispatchtriggers in the GitHub Actions tab, which currently cannot discover workflows that only exist on non-default branchesmainare removed or modifiedContext
GitHub only indexes
workflow_dispatchworkflows present on the default branch. Since these release workflows have never existed onmain, they are invisible togh workflow run, the REST API, and the Actions UI. See #55 for full details.Scope
Release-only -- other new workflows (
ci.yml,codeql.yml,scorecard.yml,security-scan.yml) are excluded and will arrive with the fulldevmerge.Post-merge verification
prepare-release.ymlandrelease.ymlappear in Actions tabgh workflow run prepare-release.yml --ref dev -f version=0.2.2 -f dry-run=truesucceedsmainare brokenRefs: #55