fix external plugin approval workflow permissions

Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-06-12 02:13:19 +00:00
committed by GitHub
parent 4b3f719142
commit 5b94a356ee
@@ -10,6 +10,7 @@ concurrency:
permissions:
issues: write
pull-requests: write
jobs:
sync-merged-pr-labels:
@@ -25,20 +26,6 @@ jobs:
const prNumber = context.payload.pull_request.number;
const staleLabels = ['awaiting-review', 'awaiting-approval', 'ready-for-review', 'rejected'];
try {
await github.rest.issues.createLabel({
owner: context.repo.owner,
repo: context.repo.repo,
name: 'approved',
color: '1D76DB',
description: 'Submission was approved by a maintainer'
});
} catch (error) {
if (error.status !== 422) {
throw error;
}
}
const { data: currentLabels } = await github.rest.issues.listLabelsOnIssue({
owner: context.repo.owner,
repo: context.repo.repo,