Skip to content

fix(github): don't report the checkout commit when a pinned workload image lacks a source label #247

Backlog

Description

@vishr

Since #245, when no workload image's org.opencontainers.image.source names spec.github.repository, ob falls back to the clean checkout's HEAD (the configuration-only case). An application whose own image simply lacks the source label (an older build, a build without labels) also lands in that branch, so its deploy is reported with the ob.yml checkout commit, which may not be the code that shipped.

Proposal: take the checkout fallback only when every pinned workload image is clearly third-party (its source label names another repository) or when the project opts in explicitly (for example github.reportCheckout: true). A pinned image with no source label should count as unknown and report nothing, with a warning naming the image, matching the existing "anything uncertain reports nothing" rule.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions