Skip to content

[Safe Outputs Conformance] USE-001: Multiple handlers missing standardized error codes #22467

@github-actions

Description

@github-actions

Conformance Check Failure

Check ID: USE-001
Severity: LOW
Category: Usability

Problem Description

Three handlers were flagged as potentially not using standardized error codes (E001–E010) as required by the Safe Outputs specification. Standardized error codes improve debuggability, allow downstream consumers to programmatically react to failures, and are required for spec conformance.

Affected Components

  • actions/setup/js/create_discussion.cjs
  • actions/setup/js/create_issue.cjs
  • actions/setup/js/push_signed_commits.cjs
🔍 Current vs Expected Behavior

Current Behavior

These handlers throw or return errors without the standardized E001–E010 error code prefix. Error messages are ad-hoc strings, making them harder to identify and handle programmatically.

Expected Behavior

Per USE-001 of the Safe Outputs specification, all handlers MUST use the standardized error code format when reporting failures. Each error should include one of the defined codes (E001–E010) matching the failure category (e.g., validation failure = E001, permission denied = E002, etc.).

Remediation Steps

This task can be assigned to a Copilot coding agent with the following steps:

  1. Review the Safe Outputs specification error code table in docs/src/content/docs/reference/safe-outputs-specification.md to understand E001–E010 definitions.
  2. For each affected file, audit all throw, core.setFailed(), or error-return paths.
  3. Prefix error messages with the appropriate standardized code (e.g., E001: Validation failed - ...).
  4. Ensure consistency with how other already-conforming handlers emit error codes.
  5. Run the conformance checker to verify all three handlers pass USE-001.

Verification

After remediation, verify the fix by running:

bash scripts/check-safe-outputs-conformance.sh

All three handlers should pass USE-001 without errors.

References

  • Safe Outputs Specification: docs/src/content/docs/reference/safe-outputs-specification.md
  • Conformance Checker: scripts/check-safe-outputs-conformance.sh
  • Run ID: §23449847592
  • Date: 2026-03-23

Generated by Daily Safe Outputs Conformance Checker ·

  • expires on Mar 24, 2026, 5:07 PM UTC

Metadata

Metadata

Type

No type
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