Skip to content

Conversation

@dorukozerr
Copy link
Owner

Potential fix for https://github.com/dorukozerr/kisuke.vim/security/code-scanning/1

To fix the problem, add the permissions key to the workflow or the specific job to explicitly restrict the GITHUB_TOKEN permissions to the minimum required. For a workflow that simply runs code quality checks (linting and formatting), only read access to repository contents is needed. The recommended fix is to add permissions: contents: read immediately below the workflow name: at the top level, making it apply universally to all jobs in this workflow. Alternatively, you could add it under each job, but the top-level placement is cleaner and follows the recommendation. No new imports or definitions are needed; only a single line should be added near the top of .github/workflows/code-quality.yml, right beneath name: Code Quality Checks.

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>
@dorukozerr dorukozerr marked this pull request as ready for review November 28, 2025 12:47
@dorukozerr dorukozerr merged commit a579607 into main Nov 28, 2025
4 checks passed
@dorukozerr dorukozerr deleted the alert-autofix-1 branch November 28, 2025 12:48
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