Skip to content

Conversation

kdinev
Copy link
Member

@kdinev kdinev commented Oct 14, 2025

Potential fix for https://github.com/IgniteUI/igniteui-angular/security/code-scanning/15

To fix this error, you should add an explicit permissions block to the workflow file to restrict the GITHUB_TOKEN scope. The best approach is to set it at the workflow root so that all jobs inherit the least required privilege. In this workflow, only standard actions (checkout, runs, coveralls) are used; none appear to require write access to the repository contents. Therefore, we set the permissions block to:

permissions: contents: read

This should be inserted immediately after the name field at the top of .github/workflows/nodejs.yml.

No additional imports or definitions are required for this change; it is purely a YAML configuration addition.


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

…in permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kdinev kdinev marked this pull request as ready for review October 14, 2025 15:44
@kdinev kdinev merged commit 19d1f35 into master Oct 15, 2025
6 checks passed
@kdinev kdinev deleted the alert-autofix-15 branch October 15, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant