Skip to content

Conversation

@satta
Copy link
Member

@satta satta commented Nov 20, 2025

Potential fix for https://github.com/DCSO/fever/security/code-scanning/1

To fix the problem, you should add a permissions: block to restrict the GITHUB_TOKEN in the workflow to the least privileges necessary. Since the workflow is only checking out code, installing dependencies, building, and running tests, the minimum required is contents: read. This block should be added to the job (build:) level to restrict permissions only for this job (you could also add it at the root, but per the warning and context, adding it to the job is best practice and demonstrates targeted permission scoping). No changes to steps, imports, or other definitions are necessary: simply add the permissions block.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@satta satta requested a review from fhonza November 20, 2025 11:32
@satta satta marked this pull request as ready for review November 20, 2025 11:46
@satta satta merged commit ec4cc0d into master Nov 20, 2025
5 checks passed
@satta satta deleted the alert-autofix-1 branch November 20, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants