Skip to content

Conversation

@gregnazario
Copy link
Contributor

Potential fix for https://github.com/aptos-labs/aptos-python-sdk/security/code-scanning/6

To fix the issue, add a permissions block at the root level of the workflow file. This block should specify the least privileges required for the workflow to function correctly. Based on the tasks performed in the workflow (e.g., linting, formatting checks, and running tests), the minimal required permission is contents: read. This ensures that the GITHUB_TOKEN has only read access to the repository contents, reducing the risk of unintended write operations.

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>
@gregnazario gregnazario marked this pull request as ready for review May 30, 2025 02:09
@gregnazario gregnazario requested review from a team and davidiw as code owners May 30, 2025 02:09
@gregnazario gregnazario merged commit f0da706 into main May 30, 2025
5 of 6 checks passed
@gregnazario gregnazario deleted the alert-autofix-6 branch May 30, 2025 02:16
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