Skip to content

Conversation

@drzo
Copy link

@drzo drzo commented Jun 7, 2025

Potential fix for https://github.com/HyperCogWizard/aichat/security/code-scanning/2

To fix the issue, we will add a permissions block to the publish-crate job. Since the job primarily involves publishing a crate to crates.io, it does not require write access to the repository contents. The minimal required permission is contents: read. This change ensures that the job has the least privileges necessary to perform its task.


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