Skip to content

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

Merged
m1ngshum merged 1 commit into
mainfrom
fix/alert-autofix-1
May 11, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#5
m1ngshum merged 1 commit into
mainfrom
fix/alert-autofix-1

Conversation

@m1ngshum
Copy link
Copy Markdown
Member

Potential fix for https://github.com/getmcpm/cli/security/code-scanning/1

Add an explicit permissions block in .github/workflows/ci.yml at the workflow root (recommended here since there is one job and all steps are read-only). Use least privilege:

  • contents: read

This preserves existing functionality (checkout and CI commands continue to work) while preventing accidental write-capable token use if defaults change.

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>
@m1ngshum m1ngshum marked this pull request as ready for review May 11, 2026 18:14
@m1ngshum m1ngshum merged commit 0670848 into main May 11, 2026
7 checks passed
@m1ngshum m1ngshum deleted the fix/alert-autofix-1 branch May 11, 2026 18:14
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