Skip to content

Conversation

@kdinev
Copy link
Member

@kdinev kdinev commented Oct 17, 2025

Potential fix for https://github.com/IgniteUI/igniteui-theming/security/code-scanning/2

To fix this issue, you should add a permissions block to the workflow (.github/workflows/npm-publish.yml). This block should specify the minimal permissions required for the workflow. For an NPM publish workflow triggered on release creation, it is usually sufficient to set contents: read, unless you need to create new tags or modify repository contents (which you do not in the shown steps).
You should add the following block at the top level of the YAML file, just after the name: or before/after the on: block; this will apply the permissions to all jobs in the workflow unless overridden.
No package changes or additional methods are necessary; the fix is purely in the workflow YAML.


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>
@simeonoff simeonoff marked this pull request as ready for review October 20, 2025 10:37
@simeonoff simeonoff merged commit 7e826a9 into master Oct 20, 2025
3 checks passed
@simeonoff simeonoff deleted the alert-autofix-2 branch October 20, 2025 10:37
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.

3 participants