Skip to content

Suggested test: copilot/safe-output-metadata-field #9781

Description

@github-actions

Motivation

Link to the gh-aw PR: github/gh-aw#48363 — Add sanitization-safe metadata channel for body-based safe outputs

The new metadata field is a first-class structured object on safe-output items that survives HTML comment sanitization. No existing test exercises this field.

Proposed test

  • Workflow file: test-copilot-safe-output-metadata-field.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: create-issue (or add-comment) with a metadata key set to a small JSON object
  • Variant: standard

Minimal test prompt sketch

Instruct the agent to create an issue and attach a structured metadata object (e.g. {"source": "e2e-test", "version": 1}) to the safe-output item. The harness should assert that the issue was created and that the metadata field was accepted without validation errors.

New fixtures or secrets needed

None. Standard githubnext/gh-aw-test repo is sufficient.

Notes

The feature also applies to add-comment, update-issue, etc. A single create-issue variant is sufficient to validate the new metadata path. The samples: block should include a metadata key so the test runs deterministically with --use-samples.

Generated by 🔍 Suggest New E2E Tests · sonnet46 · 24.7 AIC · ⌖ 5.9 AIC · ⊞ 6.1K ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions