Skip to content

Conversation

@DoctorVin
Copy link
Owner

Potential fix for https://github.com/DoctorVin/core-python/security/code-scanning/1

To fix the issue, add a permissions block to the workflow to explicitly define the least privileges required. Since the workflow primarily involves testing and reporting coverage, it does not need write access to the repository. The contents: read permission is sufficient for the actions/checkout@v4 step, and no other permissions are required.

The permissions block should be added at the root level of the workflow, ensuring it applies to all jobs unless overridden by a job-specific permissions block.


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>
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