-
Notifications
You must be signed in to change notification settings - Fork 322
[task] Add missing permissions to test-close-discussion.md #4599
Copy link
Copy link
Closed as not planned
Labels
Description
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 thisAcceptance Criteria
-
issues: readpermission added to permissions block -
pull-requests: readpermission added to permissions block - Workflow compiles without permission warnings
- Test workflow can be executed successfully
AI generated by Plan Command for discussion #4589
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.