Skip to content

Conversation

@rtivital
Copy link
Member

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

To fix this issue, add an explicit permissions block at the workflow (root) level, immediately after the name: (and before on:), specifying the minimal required permissions for this workflow. Since the workflow only checks out code and runs tests (no steps that need to write to repository contents, pull requests, or issues), set contents: read. If you later add jobs interacting with PRs/issues, you can scope them as granularly as needed.
Edit .github/workflows/npm_test.yml, insert the following block after name: Pull request workflow:

permissions:
  contents: read

No imports or additional code changes are required; just add this block.


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>
@rtivital rtivital marked this pull request as ready for review September 13, 2025 17:09
@rtivital rtivital merged commit c3f14e4 into master Sep 13, 2025
4 checks passed
@rtivital rtivital deleted the alert-autofix-1 branch September 13, 2025 17:36
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