Skip to content

Conversation

@thpierce
Copy link
Contributor

Potential fix for https://github.com/aws/aws-xray-sdk-python/security/code-scanning/1

To fix the problem while following the principle of least privilege, explicitly add a permissions block to the workflow. Since this workflow only needs to check out code (i.e., read repository contents) and does not interact with pull requests, issues, or other write scopes, setting the permissions at the root level to contents: read will suffice. This can be safely placed at the top of the workflow after the name and before on: (or directly after on:), or, if preferred, at the job level, but the root is the most maintainable for this simple case. No new methods, imports, or definitions are required.


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>
@thpierce thpierce marked this pull request as ready for review October 14, 2025 16:43
@thpierce thpierce requested a review from a team as a code owner October 14, 2025 16:43
@thpierce
Copy link
Contributor Author

Unit Testing / test (py37, ext) (pull_request) failed but has been failing for some time and my changes should not cause this. Bypass

@thpierce thpierce merged commit 89a45f4 into master Oct 14, 2025
7 of 13 checks passed
@thpierce thpierce deleted the alert-autofix-1 branch October 14, 2025 20:18
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