Skip to content

[spec-review] Update Safe Outputs conformance checker for recent spec changes#34589

Merged
pelikhan merged 1 commit into
mainfrom
update-safe-outputs-conformance-checker-1.21.0-cd2f55faf1ea0e32
May 25, 2026
Merged

[spec-review] Update Safe Outputs conformance checker for recent spec changes#34589
pelikhan merged 1 commit into
mainfrom
update-safe-outputs-conformance-checker-1.21.0-cd2f55faf1ea0e32

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 25, 2026

Summary

Bumps the Safe Outputs conformance checker to spec v1.21.0 and introduces a new TYPE-005 check that validates add_comment handler compliance with the status-comment reuse extension defined in Safe Outputs spec §7.1.


Changes

scripts/check-safe-outputs-conformance.sh

  • Version bump: checker target updated from the previous version to 1.21.0.
  • New check — TYPE-005: validates that add_comment handlers correctly implement the status-comment reuse behaviour mandated by Safe Outputs spec Section 7.1. This ensures handlers do not create duplicate status comments when one already exists on the target resource.

Impact

Attribute Value
Scope scripts/ (tooling only)
Breaking change No
Spec version Safe Outputs v1.21.0
New checks added TYPE-005 (add_comment / status-comment reuse)

Why

Safe Outputs spec v1.21.0 formalised the status-comment reuse extension in §7.1. Without this update, the conformance checker would not catch handlers that violate the new requirement, leaving non-conformant add_comment implementations undetected during CI validation.


Testing

No production code changes — this is a script-only update. Validate by running the conformance checker locally against a workflow that uses add_comment and confirming TYPE-005 fires as expected on a non-compliant handler.


References

  • Safe Outputs spec §7.1 — Status-comment reuse extension
  • Commit: efc7276cd

Generated by PR Description Updater for issue #34589 · sonnet46 656K ·

Add TYPE-005 check for add_comment status-comment reuse extension
introduced in spec version 1.21.0 (Section 7.1):
- Validates target=status handling is implemented
- Validates existing comment update path for status reuse
- Validates fallback new-comment creation when no ID available
- Validates discussion comment rejection for target=status

Also updates script version header from 1.20.0 to 1.21.0.

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added automation documentation Improvements or additions to documentation safe-outputs labels May 25, 2026
@pelikhan pelikhan merged commit bdb321e into main May 25, 2026
@pelikhan pelikhan deleted the update-safe-outputs-conformance-checker-1.21.0-cd2f55faf1ea0e32 branch May 25, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation safe-outputs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant