You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f90face
Browse filesBrowse the repository at this point in the historyBrowse files
Deploy shipped only commits that landed through a pull request — the
gate failed raw direct pushes to main as unvalidated. The validation
argument belongs to branch protection, not a workflow step: the tip
guard already prevents racing deploys, and direct pushes of chores and
test changes were turning main red for no safety gain. The force input
existed only to bypass the gate; it goes too.
QUEUES="$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/pulls" --jq length)"
121
-
if [ "$QUEUES" -gt 0 ]; then
122
-
echo "queued=true" >> "$GITHUB_OUTPUT"
123
-
exit 0
124
-
fi
125
-
if [ "$FORCE" = "true" ]; then
126
-
echo "queued=true" >> "$GITHUB_OUTPUT"
127
-
echo "::notice::Provenance check skipped by the force input — deploying a commit with no associated pull request"
128
-
exit 0
129
-
fi
130
-
echo "queued=false" >> "$GITHUB_OUTPUT"
131
-
echo "::error::$GITHUB_SHA has no associated pull request — it was pushed directly to main, outside the merge queue, so it was never validated. Merging this commit's branch through the queue re-deploys it automatically, or dispatch this workflow on main with the force input to deploy it deliberately."
132
-
exit 1
133
-
134
97
# Image leg: build the `runtime` stage and push it to GHCR (sha-<short> +
135
98
# version tags, latest held on prereleases) BEFORE any config/bundle publish,
136
99
# so a failed image push cannot leave a partially published deploy. The
0 commit comments