Skip to content

[task] Add missing permissions to test-close-discussion.md #4599

@github-actions

Description

@github-actions

Objective

Add required issues:read and pull-requests:read permissions to the test-close-discussion workflow.

Context

The static analysis report identified that this test workflow uses the GitHub MCP toolsets (default toolsets include issues and pull_requests in addition to the discussions toolset) but doesn't declare the required read permissions for issues and pull requests. This will cause the workflow to fail when attempting to access GitHub API resources.

Related to #4589

Approach

Update the frontmatter in .github/workflows/test-close-discussion.md to include the missing permissions.

Files to Modify

  • .github/workflows/test-close-discussion.md

Required Changes

Add the following permissions to the workflow frontmatter:

permissions:
  contents: read
  actions: read
  discussions: read
  issues: read           # Add this
  pull-requests: read    # Add this

Acceptance Criteria

  • issues: read permission added to permissions block
  • pull-requests: read permission added to permissions block
  • Workflow compiles without permission warnings
  • Test workflow can be executed successfully

AI generated by Plan Command for discussion #4589

Metadata

Metadata

Assignees

No one assigned

    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