Skip to content

Checkout warning cannot distinguish tooling and data repositories #76586

Done

Description

@seesharprun

In v1.2.2, the checkout-ref heuristic warns on this MultiRepoOps pattern:

checkout:
  - path: tooling
  - repository: example-org/content
    ref: ${{ needs.prepare.outputs.branch }}
    path: target
steps:
  - working-directory: tooling
    run: ./scripts/validate-content ../target

The compiler emits:

warning: checkout step "example-org/content into target" uses checkout.ref
"${{ needs.prepare.outputs.branch }}" with an untrusted or unparseable
expression, and host setup steps run after it.

The warning makes sense when host steps execute code from the dynamically selected checkout. In this case, however, executable tooling comes from the trusted workflow repository. The target checkout supplies content processed as data; its scripts are not executed.

The heuristic appears to flag the combination of a dynamic checkout and host steps without distinguishing which checkout supplies executable code.

Should we structure this workflow differently? Or could GH-AW provide a supported way to express or acknowledge this tooling/data separation without warnings? We'd prefer to follow the recommended pattern rather than remove validation or suppress unrelated diagnostics.

Note

Fictitious, illustrative example; not a complete workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions