Skip to content

fix(ci): impact workflow permission — issues:write → pull-requests:write#816

Merged
tamirdresher merged 1 commit intodevfrom
fix/impact-permission
Apr 4, 2026
Merged

fix(ci): impact workflow permission — issues:write → pull-requests:write#816
tamirdresher merged 1 commit intodevfrom
fix/impact-permission

Conversation

@diberry
Copy link
Copy Markdown
Collaborator

@diberry diberry commented Apr 4, 2026

One-line fix: the impact analysis workflow needs \pull-requests: write\ (not \issues: write) to post PR comments. This was missed when #786 was decontaminated.

Unblocks CI for #813, #800, #768.

…requests:write

The impact analysis posts PR comments via the Issues API, which accepts
either issues:write or pull-requests:write. Using pull-requests:write
is least-privilege since this workflow only operates on PRs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 4, 2026 17:19
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

🔒 Security Review

🔒 Security review: 1 info.

Severity Category Finding Location
ℹ️ info workflow-permissions Workflow grants write permission — verify this is the minimum required scope. .github/workflows/squad-impact.yml:13

Automated security review — informational only.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit 14f9f3f

⚠️ 2 item(s) to address before review

Status Check Details
Single commit 1 commit — clean history
Not in draft Ready for review
Branch up to date Up to date with dev
Copilot review No Copilot review yet — it may still be processing
Changeset present No source files changed — changeset not required
Scope clean No .squad/ or docs/proposals/ files
No merge conflicts No merge conflicts
Copilot threads resolved No Copilot review threads
CI passing 14 check(s) still running

This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

🏗️ Architectural Review

⚠️ Architectural review: 1 info.

Severity Category Finding Files
ℹ️ info template-sync Template files changed in .github/workflows/ but not in other template locations. If these templates should stay in sync, consider updating the others too. Changed: .github/workflows/, Unchanged: templates/, .squad-templates/, packages/squad-cli/templates/

Automated architectural review — informational only.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the squad-impact GitHub Actions workflow token permissions so the impact analysis job can post/update its PR comment, unblocking CI for PRs that rely on the impact report.

Changes:

  • Update workflow permissions to use pull-requests: write (instead of issues: write / pull-requests: read) for PR comment posting.

@tamirdresher tamirdresher merged commit 462ae4a into dev Apr 4, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants