Skip to content

Conversation

@fernandoseguim
Copy link
Member

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

To fix the problem, add a permissions block to the workflow file to explicitly set the minimum required permissions for the GITHUB_TOKEN. Since the workflow only checks out code and builds the project, it only needs read access to repository contents. The best way to do this is to add the following at the top level of the workflow file (just after the name: line and before on:):

permissions:
  contents: read

This ensures that all jobs in the workflow inherit these minimal permissions unless overridden. No other changes are needed.


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

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Fernando Seguim <fernando.seguim@guardia.finance>
@fernandoseguim fernandoseguim marked this pull request as ready for review July 30, 2025 03:33
@fernandoseguim fernandoseguim requested a review from dopic July 30, 2025 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants