Skip to content

Conversation

@gregnazario
Copy link
Contributor

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

To fix the issue, we need to add a permissions block to the workflow. This block should specify the least privileges required for the workflow to function correctly. Based on the workflow's operations, it appears that only contents: read is necessary, as the workflow does not perform any write operations or interact with other GitHub resources.

The permissions block can be added at the root level of the workflow to apply to all jobs, or it can be added specifically to the run-devnet-examples job. In this case, adding it at the root level is sufficient and ensures consistency across all jobs.


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 closed this Jun 6, 2025
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