Skip to content

set-issue-field safe-output: 'No issue fields were discovered for this repository' #33847

Closed

Description

@labudis

Bug report

Describe the bug

The built-in set-issue-field safe-output silently skips all field updates with the message:

No issue fields were discovered for this repository. Verify issue fields are enabled and visible to this token.

The repository has issue fields configured and accessible via the GraphQL API (issueFields connection returns results). The agent correctly calls set_issue_field with valid field names and values, but the safe-outputs handler in the safe_outputs job step fails to discover them.

Steps to reproduce

  1. Configure a workflow with set-issue-field: max: 4 in safe-outputs
  2. Repository has issue fields enabled (e.g. Priority, Visibility, Impact, Effort)
  3. Permissions set to read-all (write permissions are rejected by strict mode)
  4. Agent calls set_issue_field with valid payloads during execution
  5. Safe-outputs processing step skips all calls

Observed behavior

From the workflow run logs:

safe_outputs | Process Safe Outputs | ⏭ Message 2 (set_issue_field) skipped — No issue fields were discovered for this repository. Verify issue fields are enabled and visible to this token.
safe_outputs | Process Safe Outputs | ⏭ Message 3 (set_issue_field) skipped — No issue fields were discovered for this repository. Verify issue fields are enabled and visible to this token.
safe_outputs | Process Safe Outputs | ⏭ Message 4 (set_issue_field) skipped — No issue fields were discovered for this repository. Verify issue fields are enabled and visible to this token.
safe_outputs | Process Safe Outputs | ⏭ Message 5 (set_issue_field) skipped — No issue fields were discovered for this repository. Verify issue fields are enabled and visible to this token.

The agent's MCP calls were valid:

{"field_name":"Priority","issue_number":"174","value":"P2"}
{"field_name":"Visibility","issue_number":"174","value":"High"}
{"field_name":"Impact","issue_number":"174","value":"Low"}
{"field_name":"Effort","issue_number":"174","value":"Low"}

Expected behavior

The safe-outputs handler should discover the repository's issue fields and apply the values. The fields are confirmed accessible via GraphQL:

{ repository(owner:"github", name:"plan-track-agentic-toolkit") {
  issueFields(first:20) { nodes { ... on IssueFieldSingleSelect { name options { name } } } }
}}

Returns: Priority (P0-P4), Visibility (High/Medium/Low), Impact (High/Medium/Low), Effort (High/Medium/Low).

Environment

Workaround

Using a custom jobs safe-output that directly PATCHes the Issues REST API with the fields payload works correctly. Only the built-in set-issue-field handler fails to discover fields.

Activity

  1. locked and limited conversation to collaborators on May 21, 2026
  2. unlocked this conversation on May 21, 2026
  3. labudis commented on May 22, 2026

    @labudis
    Author

    Confirmed fixed: the built-in set-issue-field safe-output now successfully discovers and sets fields with GITHUB_TOKEN in Actions. Tested on github/plan-track-agentic-toolkit#186; all calls returned success.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions