Skip to content

Fix sync-skills workflow permissions#264

Merged
jeremy merged 1 commit intomainfrom
fix-sync-skills-permissions
Mar 11, 2026
Merged

Fix sync-skills workflow permissions#264
jeremy merged 1 commit intomainfrom
fix-sync-skills-permissions

Conversation

@jeremy
Copy link
Copy Markdown
Member

@jeremy jeremy commented Mar 11, 2026

Summary

  • Remove permission-pull-requests: write and permission-issues: write from the skills repo token — the sync script only needs contents:write for git push, and the App installation on basecamp/skills doesn't grant the others
  • Move failure notification to use github.token against the current repo (issues: write added to job-level permissions) so it works without additional App permissions

Test plan

  • Verify on next tagged release that sync-skills job succeeds (requires tagged release)
  • Simulate sync failure to confirm issue creation on basecamp-cli repo (requires tagged release)

Both items require a tagged release to exercise the sync-skills job. The changes are workflow-only and mechanically correct: excess permissions removed, notification retargeted to github.token + github.repository.

The sync-skills job requested pull-requests:write and issues:write on
the skills repo token, but the GitHub App installation only grants
contents:write. Remove the excess permissions.

Move failure notification to use github.token against the current
repository instead of the skills repo, so it works without additional
App permissions.
Copilot AI review requested due to automatic review settings March 11, 2026 07:06
@jeremy jeremy requested a review from a team as a code owner March 11, 2026 07:06
@github-actions github-actions bot added the ci CI/CD workflows label Mar 11, 2026
@github-actions
Copy link
Copy Markdown

Sensitive Change Detection (shadow mode)

This PR modifies control-plane files:

  • .github/workflows/release.yml

Shadow mode — this check is informational only. When activated, changes to these paths will require approval from a maintainer.

@github-actions github-actions bot added the bug Something isn't working label Mar 11, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Copy Markdown

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

Adjusts the sync-skills job in the release workflow to use least-privilege permissions for the GitHub App token (skills repo) and to route failure notifications through the current repository’s github.token, avoiding missing App installation permissions.

Changes:

  • Add issues: write to the sync-skills job so the job can file/comment on issues in the current repo.
  • Remove unused pull-requests / issues permissions from the skills repo App token request (keep only contents: write).
  • Update the failure notification step to authenticate with github.token and target ${{ github.repository }} for issue operations and run links.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jeremy jeremy merged commit bfb841f into main Mar 11, 2026
30 checks passed
@jeremy jeremy deleted the fix-sync-skills-permissions branch March 11, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci CI/CD workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants