mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-03-10 07:42:13 -05:00
[PR #106] [MERGED] Potential fix for code scanning alert no. 33: Workflow does not contain permissions #113
Reference in New Issue
Block a user
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/RayLabsHQ/gitea-mirror/pull/106
Author: @arunavo4
Created: 10/1/2025
Status: ✅ Merged
Merged: 10/1/2025
Merged by: @arunavo4
Base:
main← Head:alert-autofix-33📝 Commits (1)
5533964Potential fix for code scanning alert no. 33: Workflow does not contain permissions📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
.github/workflows/helm-test.yml(+3 -0)📄 Description
Potential fix for https://github.com/RayLabsHQ/gitea-mirror/security/code-scanning/33
To fix this issue, add a
permissionsblock declaring the minimal necessary permissions. Since the jobs only perform read-only operations (checkout, setup, local lints, and rendering, without writing to repository or opening PRs), they should only needcontents: read. The most robust solution is to add a singlepermissionsblock at the root of the workflow, so all jobs inherit these restrictions. This change should be made near the top of.github/workflows/helm-test.yml, typically after thename:and before or afteron:. No further modifications or imports are 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.