Skip to content

Make build-approved release pending PR workflows - #545

Merged
ryanrhughes merged 1 commit into
masterfrom
fix/build-approved-workflow-approval
Sep 20, 2026
Merged

ryanrhughes merged 1 commit into
masterfrom
fix/build-approved-workflow-approval

Conversation

@ryanrhughes

Copy link
Copy Markdown
Collaborator

Applying build-approved started a build but left first-time contributors waiting for a separate GitHub Actions approval, as seen in #390. Make the label release the pending build and test runs as well as bypass the missing-vouch gate.

A trusted pull_request_target workflow checks the vouch status and current label, then approves only the known PR workflows matching the PR's source repository, branch and head SHA. It waits for the label-triggered build to register and releases older held builds in order so they cannot cancel the newest build. The privileged workflow executes only default-branch code. Denouncements and failed vouch lookups still block approval.

The build gate reads the current label because approving or rerunning a held workflow retains its original, potentially pre-label event payload. The label stays scoped to this PR while attached; it does not vouch for the author's other PRs.

Validation: 23 regression tests pass (node --test tests/pr-workflow-approval.cjs); actionlint passes with the existing omarchy-builder runner label configured; git diff --check passes. The tests run in the existing self-tests CI job.

The new target workflow becomes active after merge. A real first-time-contributor label event still needs to be verified then; local tests use mocked GitHub API responses.

@ryanrhughes
ryanrhughes force-pushed the fix/build-approved-workflow-approval branch from b6ac781 to 3628915 Compare September 20, 2026 06:11
@ryanrhughes
ryanrhughes marked this pull request as ready for review September 20, 2026 06:18
@ryanrhughes
ryanrhughes merged commit bda2a07 into master Sep 20, 2026
5 checks passed
maralcbr added a commit that referenced this pull request Sep 25, 2026
Pin a09ee0ca, the head of omacom/omarchy-mac integ/boot-set-1 (#547): quattro-upstream with #527, #540, #545 and #541 merged. The package then carries the Apple provisioning entrypoints from #545 and can publish before those PRs merge.
maralcbr added a commit that referenced this pull request Sep 25, 2026
Moves the pin from the boot-set integration commit to quattro-upstream,
which now has #541 with its review fixes (first boot hands off only for a
failed step, and the retry waits for NetworkManager), #543's update-verify
entrypoint, #545's provision entrypoints and #549's keyslot-only LUKS check.
#544 is not in it, so the Plymouth fragment still ships and no HOOKS baseline
dependency applies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant