Skip to content

Artifact-retention check rejects an upload sealed and scanned in an upstream job #16809

Closed

Description

@kyle-sexton

Problem

The implement lane's agent legs (.github/workflows/pr-run-activity-read.yml, job run) upload no transcript: an upload there would run after code the model can rewrite while holding the runtime token. The owner decided on 2026-11-17 to keep that job from uploading and instead seal each leg's transcript inside it with the verified sealer, carry the sealed bytes out through job outputs, and upload them from a separate job that holds no permissions, checkout or secret.

scripts/check-artifact-retention.mjs fails any upload of a scan: plaintext artifact family from a job with no scan step before it. The clean upload job has no scan step of its own, since the scan and seal ran upstream in the run job, so the check rejects the decided design.

Done when

  • check-artifact-retention accepts a scan: plaintext upload from a job only when that job is listed as sealed upstream (sealed-upstream in .github/artifact-retention.json), and every listed job holds no checkout, no secret and permissions: {}.
  • Every job not listed is checked as before: an unscanned plaintext upload still fails.
  • Tests cover a listed job passing, an unlisted job failing, and a listed job with a checkout or secret failing.

Reason: the scan still runs, upstream, on the same bytes; the exemption only moves where the check looks for it.

Activity

  1. added 2 commits that reference this issue on Nov 17, 2026
    da3c67b
    415e4d3
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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions