-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Objective
Fix the 3 permissions actionlint findings in workflows that are missing required write permissions, as reported in discussion #18283.
Context
Actionlint reported 3 permissions issues:
- 1 in
example-permissions-warning.md - 2 in copilot-request workflows
These workflows perform operations that require write permissions but don't declare them in their frontmatter, which can cause runtime failures.
- Tool: actionlint
- Count: 3
- Affected:
example-permissions-warning.md(×1) + copilot-request workflows (×2)
Approach
-
Run actionlint locally to identify the exact missing permissions:
actionlint .github/workflows/example-permissions-warning.lock.yml # Also check compiled lock files for copilot-request workflows actionlint .github/workflows/copilot-request*.lock.yml
-
For each affected
.mdworkflow file, add the missing permissions to the frontmatter:--- permissions: issues: write # example: if workflow creates/updates issues pull-requests: write # example: if workflow interacts with PRs ---
-
Use the principle of least privilege — only add the specific permissions that are actually needed
-
Run
make recompileto regenerate.lock.ymlfiles -
Run
make agent-finishto validate -
Re-run actionlint to confirm the permissions findings are resolved
Files to Modify
.github/workflows/example-permissions-warning.md— add missing write permission- Copilot-request workflow
.mdfiles — add missing write permissions
Acceptance Criteria
- All 3 actionlint
permissionsfindings are resolved - Permissions added follow least-privilege principle (only what's needed)
-
make recompilesucceeds -
make agent-finishpasses - actionlint reports 0
permissionsfindings for affected workflows
Generated by Plan Command for issue #discussion #18283
- expires on Feb 27, 2026, 6:53 AM UTC