Skip to content

Conversation

@found-cake
Copy link
Owner

Potential fix for https://github.com/found-cake/CacheStore/security/code-scanning/2

To fix the issue, add a permissions block to the root of the workflow file. This block will explicitly define the permissions required for the workflow, limiting the GITHUB_TOKEN to read-only access to repository contents. Since the workflow does not perform any write operations, the minimal permissions required are contents: read.

The permissions block should be added at the top level of the workflow file, ensuring it applies to all jobs in the workflow.


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>
@found-cake found-cake marked this pull request as ready for review July 25, 2025 09:13
@found-cake found-cake merged commit 869e0f2 into master Jul 25, 2025
6 checks passed
@found-cake found-cake deleted the security branch July 25, 2025 09:14
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.

1 participant