-
-
Notifications
You must be signed in to change notification settings - Fork 843
Open
Labels
Complexity: LargeFeature: Refactor GHARefactoring GitHub actions to fit latest architectural normsRefactoring GitHub actions to fit latest architectural normsLang: GHAGitHub ActionsGitHub Actionsrole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 5ptCan be done in 19-30 hoursCan be done in 19-30 hoursstatus: 2 Weeks InactiveAn issue that has not been updated by an assignee for two weeksAn issue that has not been updated by an assignee for two weeks
Milestone
Description
Overview
We need to change the permissions for the default GITHUB_TOKEN from read/write to read only per GitHub's recommendation for security best practice.
Action Items
Open file issue-trigger.yml.
- Near the top of the file immediately before the line
jobs:insert:# Set defaults for GITHUB_TOKEN permissions: contents: read issues: read - Trigger the workflow to confirm whether it runs with no further changes.
If there are errors:
- Check which step of the workflow failed occurred and the reason for the failure in the workflow logs.
- Research which permissions the API action requires. Many of the actions need
issues: write, so you can changeissues: readtoissues: writeon the line above and rerun. - Continue adding permissions back to the workflow until there are no errors.
Note that any workflow steps that include a personal access token (i.e. HACKFORLA_BOT_PA_TOKEN, etc.) do not need any changes.
Resources/Instructions
- GitHub GraphQL Explorer
- GitHub GraphQL API
- Refer to The "Hack for LA's GitHub Actions" Wiki guide needs additional explanation #6537 (comment), especially Tips 6, 7, and 8, if you have not already created you personal environment for testing.
- How to Test GitHub Actions
- Additional Notes for GitHub Actions
- Tokens, Secrets, Scopes, & Permissions
Metadata
Metadata
Assignees
Labels
Complexity: LargeFeature: Refactor GHARefactoring GitHub actions to fit latest architectural normsRefactoring GitHub actions to fit latest architectural normsLang: GHAGitHub ActionsGitHub Actionsrole: back end/devOpsTasks for back-end developersTasks for back-end developerssize: 5ptCan be done in 19-30 hoursCan be done in 19-30 hoursstatus: 2 Weeks InactiveAn issue that has not been updated by an assignee for two weeksAn issue that has not been updated by an assignee for two weeks
Type
Projects
Status
In progress (actively working)