Skip to content

Always preserve execution provenance in safe outputs, including footer:false #68075

Closed

Description

@davidslater

Disabling a visible footer must not remove execution provenance from an Agentic Workflows-generated GitHub artifact. We require always-on, machine-readable attribution and deterministic linkage to the publishing workflow execution.

Current gap

The deterministic safe outputs layer adds attribution. The inspected issue, pull-request, and discussion creation paths retain standalone gh-aw-workflow-id / gh-aw-workflow-call-id comments when footer: false, but skip the combined metadata marker containing the run URL and available run ID. Those standalone markers identify a workflow, not a particular run or attempt. Comment publishing already retains a combined marker when its visible footer is disabled.

The existing combined marker also lacks run_attempt, an explicit execution repository ID, and publishing-job identity. Reruns reuse run_id, so run ID alone cannot identify the attempt that published an artifact.

Relevant implementation:

Required changes

  • Add the machine-readable execution metadata marker independently of visible footer generation for issues, PRs, comments, and discussions. footer: false and custom footer templates must affect presentation only, not required provenance.
  • Generate the marker from trusted safe outputs runtime context, not agent-supplied content. Keep the existing standalone workflow/caller markers and their search/deduplication behavior compatible.
  • Include a versioned, consistently parseable payload with execution repo_id, AW workflow identifier, run_id, run_attempt, run URL, and unambiguous publishing-job identity. Use GITHUB_REPOSITORY_ID, GITHUB_RUN_ID, and GITHUB_RUN_ATTEMPT where applicable.
  • Distinguish the logical job key (GITHUB_JOB, e.g. safe_outputs) from the numeric Actions job execution ID. Provide the numeric job ID or a documented, validated resolution path; do not silently label an ambiguous logical key as a unique execution ID. Cover reusable workflows and any supported matrix configuration.
  • Distinguish AW's workflow identifier from the numeric Actions workflow ID, which can be retrieved from the linked workflow run. Distinguish execution repository identity from destination repository identity for cross-repository outputs.
  • The triggering workflow actor must not be confused with the publishing bot/App identity.

Acceptance criteria

  • Tests cover all four artifact types with default footer, footer: false, and custom footer templates, demonstrating that the required execution marker remains present and truthful.
  • Tests cover cross-repository publishing, reusable workflows, supported update/fallback paths, and compatibility of existing workflow grouping markers.
  • Required metadata cannot be overridden by agent-authored text. Missing required runtime metadata is surfaced explicitly rather than producing an apparently complete but untraceable artifact.

Activity

  1. changed the title [-]GA: Always preserve execution provenance in safe outputs, including footer:false[/-] [+]Always preserve execution provenance in safe outputs, including footer:false[/+] on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P0bugsafe-outputssecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions