Repository navigation
Specify default permissions for pr-instructions.yml and wr-pr-instructions.yml #8589
Copy link
Copy link
Open
Labels
Complexity: LargeFeature: Refactor GHARefactoring GitHub actions to fit latest architectural normsRefactoring GitHub actions to fit latest architectural normsrole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 8ptCan be done in 31-48 hoursCan be done in 31-48 hours
Milestone
Description
Activity
- addedrole: back end/devOpsTasks for back-end developersTasks for back-end developersFeature: Refactor GHARefactoring GitHub actions to fit latest architectural normsRefactoring GitHub actions to fit latest architectural normssize: 8ptCan be done in 31-48 hoursCan be done in 31-48 hoursDraftIssue is still in the process of being createdIssue is still in the process of being created
on Mar 28, 2026 - moved this to New Issue Approval in P: HfLA Website: Project Board
on Mar 28, 2026 - changed the title
[-]Specify default permissions for `pr-instructions.yml`[/-][+]Specify default permissions for `pr-instructions.yml` and `wr-pr-instructions.yml`[/+]on Mar 28, 2026 - added and removedDraftIssue is still in the process of being createdIssue is still in the process of being created
on Mar 30, 2026 - moved this from New Issue Approval to Ready for Prioritization in P: HfLA Website: Project Board
on Mar 30, 2026 3 remaining items
- addedStatus: Unassigned by BotPreviously-prioritized issues that bot places in "New Issue Approval"Previously-prioritized issues that bot places in "New Issue Approval"
on May 27, 2026 - moved this from Prioritized backlog to New Issue Approval in P: HfLA Website: Project Board
on May 27, 2026 - moved this from New Issue Approval to Ready for Prioritization in P: HfLA Website: Project Board
on Jun 29, 2026 - moved this from Ready for Prioritization to Prioritized backlog in P: HfLA Website: Project Board
on Sep 15, 2026 - removedStatus: Unassigned by BotPreviously-prioritized issues that bot places in "New Issue Approval"Previously-prioritized issues that bot places in "New Issue Approval"
on Sep 15, 2026 Hi @yielderdev, thank you for taking up this issue! Hfla appreciates you :)
Do let fellow developers know about your:-
i. Availability: (When are you available to work on the issue/answer questions other programmers might have about your issue?)
ii. ETA: (When do you expect this issue to be completed?)You're awesome!
P.S. - You may not take up another issue until this issue gets merged (or closed). Thanks again :)
- Availability: Mondays & Tuesdays 3 Hours-ish each.
- ETA: Ideally next Tuesday 10-06-2026 EOD but that is tentative, once I get into the weeds I'll know a more accurate ETA
ETA Update: 10-12-EOD. Getting merges & issue reviews done first
Metadata
Metadata
Assignees
Labels
Complexity: LargeFeature: Refactor GHARefactoring GitHub actions to fit latest architectural normsRefactoring GitHub actions to fit latest architectural normsrole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 8ptCan be done in 31-48 hoursCan be done in 31-48 hours
Type
Projects
- StatusShow more project fieldsIn progress (actively working)
Prerequisites
Overview
We need to update the default permissions for the GitHub workflow specified in pr-instructions.yml and wr-pr-instructions.yml, so that it does not have more permissions than it needs.
Details
To align with GitHub security best practices, we want to specify the minimum required permissions for each workflow via a top-level
permissions:block to ensure that workflows only have the access they need by default.Every GitHub Actions workflow automatically receives a
GITHUB_TOKENwith a set of default repository permissions defined in the repo settings which may result in the workflow having more permissions than it needs to complete its job. By explicitly defining minimum default permissions at the workflow level, we can ensure that workflow has only the permissions it needs. Then if a job or step requires more access, those permissions can be explicitly granted using job-level permissions statements or step-level tokens (PATs).We performed an audit to identify the minimum top-level permissions required for each workflow. The goal of this and related issues is to verify that each workflow continues to function correctly with the explicitly defined permissions. This approach helps minimize unnecessary privileges and strengthen overall repository security.
For additional info, see issue #8178 and GitHub's recommendation for security best practice.
Action Items
Note that this issue involves testing GitHub Actions. See "Resources/Instructions" below for how to set up your personal environment for testing.
Refer to pr-instructions.yml:
on:section.jobs:insert:Next, refer to wr-pr-instructions.yml:
on:section.jobs:insert:Resources/Instructions