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 .md workflow 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 recompile to regenerate .lock.yml files
-
Run make agent-finish to 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
.md files — add missing write permissions
Acceptance Criteria
Generated by Plan Command for issue #discussion #18283
Objective
Fix the 3
permissionsactionlint findings in workflows that are missing required write permissions, as reported in discussion #18283.Context
Actionlint reported 3
permissionsissues:example-permissions-warning.mdThese workflows perform operations that require write permissions but don't declare them in their frontmatter, which can cause runtime failures.
example-permissions-warning.md(×1) + copilot-request workflows (×2)Approach
Run actionlint locally to identify the exact missing permissions:
For each affected
.mdworkflow file, add the missing permissions to the frontmatter:Use the principle of least privilege — only add the specific permissions that are actually needed
Run
make recompileto regenerate.lock.ymlfilesRun
make agent-finishto validateRe-run actionlint to confirm the permissions findings are resolved
Files to Modify
.github/workflows/example-permissions-warning.md— add missing write permission.mdfiles — add missing write permissionsAcceptance Criteria
permissionsfindings are resolvedmake recompilesucceedsmake agent-finishpassespermissionsfindings for affected workflows