GitHub Actions workflow updates#3444
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tightens GitHub Actions security posture across the repository by defaulting workflows to no token permissions and then granting only the minimal permissions needed per job, while also adding per-job timeouts to avoid runaway runs consuming excessive minutes.
Changes:
- Set workflow-level
permissions: {}to disable all scopes by default across workflows. - Add job-level
permissionsscoped to the minimum required (e.g.,issues: write,contents: read/write,projects: write). - Add
timeout-minutesto jobs to cap execution time (typically 10–30 minutes depending on the workflow).
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/self-assign-issue.yml | Defaults token permissions to none; adds job timeout and issues: write for issue assignment/labeling. |
| .github/workflows/review-instructions.yml | Defaults token permissions to none; adds job timeout and issues: write to post review-instruction comments. |
| .github/workflows/published-content.yml | Defaults token permissions to none; adds job timeout and issues: write for labeling/closing via gh. |
| .github/workflows/linters.yml | Defaults token permissions to none; adds job timeout and contents: read for checkout and linting. |
| .github/workflows/label-feedback-from-issue.yml | Defaults token permissions to none; adds job timeout and issues: write for labeling via github-script. |
| .github/workflows/label-feedback-from-comment.yml | Defaults token permissions to none; adds job timeout and issues: write for labeling via github-script. |
| .github/workflows/incomplete-workflows/automate-review-documentation.yml | Defaults token permissions to none; adds job timeout and issues: write to post a “Ready for Review” comment. |
| .github/workflows/incomplete-workflows/add-to-project-when-labeled.yml | Defaults token permissions to none; adds job timeouts and issues: read/projects: write for adding items to projects. |
| .github/workflows/i18n.yml | Defaults token permissions to none; adds job timeout and contents: write for committing/pushing updated translation strings. |
| .github/workflows/content-checklist-from-issue.yml | Defaults token permissions to none; sets issues: write on reusable-workflow call jobs for checklist commenting/labeling. |
| .github/workflows/content-checklist-from-comment.yml | Defaults token permissions to none; sets issues: write on reusable-workflow call jobs for checklist commenting/labeling. |
| .github/workflows/comment-with-checklist.yml | Defaults token permissions to none; adds job timeout and issues: write for reusable workflow that comments/adds labels. |
| .github/workflows/build.yml | Defaults token permissions to none; adds job timeout and contents: write for pushing to the build branch. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
desrosj
approved these changes
May 13, 2026
Member
Setting has been updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the GitHub Actions workflow files to:
Once this PR is merged, the Settings -> Actions -> Workflow permissions setting can be changed by a repo admin to "Read repository contents and packages permissions".
References