Skip to content

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#708

Closed
softartdev wants to merge 1 commit into
masterfrom
alert-autofix-5
Closed

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#708
softartdev wants to merge 1 commit into
masterfrom
alert-autofix-5

Conversation

@softartdev
Copy link
Copy Markdown
Owner

Potential fix for https://github.com/softartdev/NoteDelight/security/code-scanning/5

Add an explicit permissions block to .github/workflows/kmp.yml at the workflow root so it applies to both jobs. The least-privilege baseline here is:

  • contents: read

This preserves current behavior for checkout/build/test/cache/artifact steps while documenting token scope and preventing accidental broader access if repo/org defaults change.

Edit region: near the top of the file, after name: and before on:.

No imports, methods, or dependencies are needed.

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>
@softartdev softartdev marked this pull request as ready for review April 18, 2026 04:24
@softartdev softartdev closed this Apr 18, 2026
@softartdev softartdev deleted the alert-autofix-5 branch April 18, 2026 23:44
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.

1 participant