Skip to content

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

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

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

Conversation

@softartdev
Copy link
Copy Markdown
Owner

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

Add an explicit permissions block in .github/workflows/desktop.yaml to enforce least privilege.

Best fix here: define permissions at the workflow root (applies to all jobs), with:

  • contents: write (required for creating/uploading release assets in softprops/action-gh-release)
  • packages: read (safe minimal read scope often needed by build tooling; also aligns with CodeQL guidance about explicit read defaults)

This preserves existing functionality while making token privileges explicit and stable across repo/org setting changes.

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:31
@softartdev softartdev closed this Apr 18, 2026
@softartdev softartdev deleted the alert-autofix-3 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