mirror of
https://github.com/gopher64/gopher64.git
synced 2026-04-25 06:55:58 +03:00
[PR #413] [MERGED] Potential fix for code scanning alert no. 4: Workflow does not contain permissions #493
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gopher64#493
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/gopher64/gopher64/pull/413
Author: @loganmc10
Created: 6/3/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @loganmc10
Base:
main← Head:alert-autofix-4📝 Commits (1)
a4593f5Potential fix for code scanning alert no. 4: Workflow does not contain permissions📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
.github/workflows/build.yml(+2 -0)📄 Description
Potential fix for https://github.com/gopher64/gopher64/security/code-scanning/4
To fix the issue, we will add a
permissionsblock at the workflow level to restrict theGITHUB_TOKENtocontents: read. This is sufficient for the current workflow, as it primarily involves building and uploading artifacts, which do not require write permissions. Thepermissionsblock will be added at the top of the workflow, just below thenamefield, to apply to all jobs in the workflow.Suggested fixes powered by Copilot Autofix. Review carefully before merging.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.