Skip to content

Potential fix for code scanning alert no. 4: Workflow does not contain permissions#709

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

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

Conversation

@softartdev
Copy link
Copy Markdown
Owner

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

Add an explicit top-level permissions block in .github/workflows/kmp.yml so all jobs inherit restricted token access by default.
Best single fix without changing behavior: add:

permissions:
  contents: read

near the top of the workflow (after on: block and before jobs:). This satisfies CodeQL’s recommendation and enforces minimum repo-content read access for actions like checkout. 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:28
@softartdev softartdev closed this Apr 18, 2026
@softartdev softartdev deleted the alert-autofix-4 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