mirror of
https://github.com/gopher64/gopher64.git
synced 2026-04-27 07:55:58 +03:00
[PR #416] [MERGED] Potential fix for code scanning alert no. 2: Workflow does not contain permissions #498
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gopher64#498
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/416
Author: @loganmc10
Created: 6/3/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @loganmc10
Base:
main← Head:alert-autofix-2📝 Commits (1)
9c9ef9cPotential fix for code scanning alert no. 2: Workflow does not contain permissions📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
.github/workflows/lint.yml(+3 -0)📄 Description
Potential fix for https://github.com/gopher64/gopher64/security/code-scanning/2
To fix the issue, add a
permissionsblock at the root level of the workflow file to explicitly limit the permissions of theGITHUB_TOKEN. Since this workflow only performs linting tasks, it requires minimal permissions. Thecontents: readpermission is sufficient for accessing the repository contents.The fix involves:
permissionsblock at the top level of the workflow file.contents: readas the only permission required.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.