Potential fix for code scanning alert no. 11: Workflow does not contain permissions - #124
Closed
gerlero wants to merge 1 commit into
Closed
Potential fix for code scanning alert no. 11: Workflow does not contain permissions#124gerlero wants to merge 1 commit into
gerlero wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #124 +/- ##
=======================================
Coverage 75.71% 75.71%
=======================================
Files 6 6
Lines 1149 1149
=======================================
Hits 870 870
Misses 279 279 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gerlero
marked this pull request as ready for review
November 21, 2025 04:16
…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
gerlero
force-pushed
the
alert-autofix-11
branch
from
November 21, 2025 04:16
f3b7217 to
cf2e2bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Potential fix for https://github.com/gerlero/fronts/security/code-scanning/11
To fix this, add a
permissionsblock at the workflow root (just after the name/on block and before jobs) or inside each job if the needs vary per job. In this case, as all jobs seem not to require write access, you should set a minimal starting point:contents: readat the workflow level, covering all jobs by default. If you later need further permissions (e.g., uploading release assets), you can adjust per-job. The edit should be made in.github/workflows/ci.yml, by inserting the following block after the workflow name definition and before theon:block:No new methods, imports, or definitions are needed—just this static YAML block.
Suggested fixes powered by Copilot Autofix. Review carefully before merging.