mirror of
https://github.com/buildplan/du_setup.git
synced 2026-04-26 18:45:57 +03:00
[PR #44] [MERGED] Potential fix for code scanning alert no. 3: Workflow does not contain permissions #51
Labels
No labels
bug
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/du_setup#51
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/buildplan/du_setup/pull/44
Author: @buildplan
Created: 7/23/2025
Status: ✅ Merged
Merged: 7/23/2025
Merged by: @buildplan
Base:
main← Head:alert-autofix-3📝 Commits (1)
0622540Potential fix for code scanning alert no. 3: 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/buildplan/du_setup/security/code-scanning/3
To fix the issue, we will add a
permissionsblock at the root of the workflow file. Since the workflow only needs to read the repository contents (e.g., to lint the shell script), we will setcontents: read. This ensures that the workflow has the minimum required permissions and no write access.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.