Somewhere in a release channel, a green checkmark is quietly doing the work of an argument. The publish job ran after the validation job, therefore the thing that shipped was validated. It is a comforting sentence. In GitHub Actions it is also a sentence that proves considerably less than everyone reading it assumes.

Here is the thesis, short enough to quote: a workflow_run trigger is a privilege boundary, not an artifact-trust verdict. GitHub starts a downstream workflow when another workflow is requested or completed, and its own documentation is explicit that the downstream workflow can hold secrets and write tokens the upstream workflow never had. That is a good design. It is also a door that teams keep mistaking for a certificate.

What a GitHub Actions workflow_run trigger actually guarantees

  • GitHub can start a workflow_run workflow when another workflow is requested or completed, and the downstream workflow may carry secrets and write tokens the earlier workflow could not touch.
  • Nothing about trust crosses the boundary automatically. Conclusion conditions, branch filters, checkout, artifact selection, handling context and effective permissions are separate decisions, recorded separately — or not recorded at all.
  • A defensible claim joins the upstream run and revision, the downstream trigger configuration and the condition that actually evaluated, the exact artifact and checkout evidence, the privilege context, the downstream decision, and a time-bounded observation of the target.

Miss any of those joins and you are not describing a pipeline. You are describing a vibe.

Completion is not acceptance

The first distinction worth carving into stone is the one between a workflow finishing and a result being accepted. GitHub says a workflow_run run executes regardless of the prior workflow's conclusion unless the downstream workflow carries an explicit condition, such as a test for github.event.workflow_run.conclusion == 'success'. A completed upstream run therefore proves neither that its checks succeeded nor that the downstream job evaluated the condition anyone assumed it did.

A workflow name inside an event payload is not the workflow-file revision that listened for it, not the payload it received, and not the expression that actually gated the privileged step. Three different things, one shared noun, endless confusion.

Branch filters protect a ref, not a revision

Branch filtering is bounded in the same way. GitHub documents that workflow_run branch filters apply to the branch of the triggering workflow, with ordered include and exclusion patterns. A declared branches value is decent evidence of policy intent. It is not proof that a particular artifact came from the expected commit, that the downstream checkout resolved to the same revision, or that an operator's cheerful "the release branch passed" identifies the ref that was actually evaluated.

Keep the upstream run ID, event action, head branch, head SHA, workflow identity and rerun context together — or the claim evaporates the first time somebody asks a follow-up question.

An artifact is an access path, not a certificate

Then comes the artifact. GitHub's event documentation shows a downstream workflow retrieving artifacts associated with the triggering run. That is an access path. It is not a quality certificate. An artifact can be perfectly associated with a run and still be the wrong logical input for whatever happens next: a different artifact name, a whole set instead of one object, unpacked in a different environment, checked out at a different revision, fed into a command nobody contemplated when the validation was designed.

The record that matters is not "artifact available." It is the upstream run identity; the artifact name and identifier; content hash and size where available; retrieval time; downstream checkout ref and resolved revision; the parser or command that consumed it; and the isolation or non-execution conditions under which it was handled.

The secure-use warning GitHub buries in a paragraph

GitHub's secure-use reference explains why that precision is not pedantry. It warns that workflow_run becomes dangerous where a privileged workflow checks out untrusted pull-request content, and cautions that artifacts deserve careful handling. The warning does not declare every artifact unsafe, and it does not diagnose your repository. It states the structural problem: a downstream workflow's stronger token, its secrets, its shared-cache context can amplify whatever it accepts from upstream.

"The upstream workflow passed" is not a substitute for showing what the downstream workflow accepted and what it was permitted to do with it.

Why the event is not a target-effect receipt

This is also why a workflow_run event cannot stand in for evidence of what the target actually did. Even a correctly selected artifact may be handled only for inspection. A properly guarded downstream command may be denied by another permission boundary, may exit before it ever calls the target, may act on a different resource, or may complete cleanly while a later observation of the target tells a different operational story. Conversely, an upstream failure can sit in the event stream while a downstream condition blocks every privileged action.

The event, the condition, the artifact handling, the command decision and the observed target state are five separate points on the map. Teams routinely draw one line through all five and call it causality.

Build the bounded downstream receipt

The practical answer is a bounded downstream receipt, not a blanket claim that the pipeline is "trusted." Preserve the upstream workflow name and run identifier, event action, head branch and SHA, conclusion, attempt or rerun information, and a stable reference to the workflow definition. Preserve the downstream workflow definition revision, the workflow_run selector, the branch filters and the condition result that enabled or blocked the consequential job. Preserve exact checkout specifications and resolved SHAs.

For every artifact used, preserve the upstream association, identifier or name, cryptographic digest where available, retrieval context and handling path. Preserve the effective GITHUB_TOKEN permissions, secret availability and any relevant cache or environment boundary without publishing secret values. Finally, preserve the downstream operation result and a separately timed observation of the intended target. Sensitive values can be withheld. The joins cannot be reconstructed after the fact if nobody wrote them down.

Who actually holds authority in a workflow_run chain

The upstream workflow author controls what gets produced. The downstream workflow author and repository administrators control what listens, which conditions pass and which privileges get requested. Secret, token, cache and environment owners control the later constraints. Operators decide what target state counts as evidence. A trigger can connect those layers without merging their authority.

Sources

  1. GitHub Docs — Events that trigger workflows
  2. GitHub Docs — Secure use reference
  3. GitHub Docs — Triggering a workflow

A workflow_run trigger is a fine control boundary. It is a terrible witness. Stop asking it to testify about things it never saw.