Skip to content

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

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

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

Conversation

@diberry

@diberry diberry commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

🔒 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

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

🛫 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

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

🏗️ 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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
@bradygaster
bradygaster deleted the fix/impact-permission branch August 8, 2026 08:41
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