Skip to content

Conversation

@nikomatt69
Copy link
Owner

Potential fix for https://github.com/nikomatt69/keykeeper/security/code-scanning/2

To address the issue, add a permissions block at the root level of the workflow. This block will define the least privileges required for the workflow to operate. Based on the tasks in the workflow, the appropriate permissions are:

  • contents: read — Required for reading repository contents.
  • security-events: write — Required for uploading security scan results (e.g., SARIF files).

This change ensures the GITHUB_TOKEN is limited to the necessary permissions for the workflow's operations.


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>
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.

2 participants