Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#1890

Merged
rkaraivanov merged 1 commit intomasterfrom
alert-autofix-3
Oct 14, 2025
Merged

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#1890
rkaraivanov merged 1 commit intomasterfrom
alert-autofix-3

Conversation

@kdinev
Copy link
Member

@kdinev kdinev commented Oct 14, 2025

Potential fix for https://github.com/IgniteUI/igniteui-webcomponents/security/code-scanning/3

The best way to fix the problem is to add a permissions block at the top level of the workflow, just after the name: and before on:. Since the workflow only necessitates reading repository contents (for checkout, lint, and builds), the recommended minimal setting is:

permissions:
  contents: read

If future write access is required for another step (for example, publishing releases), it can be scoped more tightly by setting permissions per job or step. For the current workflow, only the above block is strictly required. Edit .github/workflows/node.js.yml by inserting the block after name: Node.js CI.

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>
@kdinev kdinev requested a review from rkaraivanov October 14, 2025 11:53
@kdinev kdinev marked this pull request as ready for review October 14, 2025 11:54
@rkaraivanov rkaraivanov merged commit 0428f10 into master Oct 14, 2025
6 checks passed
@rkaraivanov rkaraivanov deleted the alert-autofix-3 branch October 14, 2025 12:31
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