Skip to content

Conversation

@thpierce
Copy link
Contributor

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

To fix the problem, add a permissions block with the least privileges required for the jobs in the workflow. Since the provided workflow does not appear to require write access to repository contents or other resources, the minimal permissions recommended are contents: read. This permissions block can be added either at the workflow root (to apply to all jobs), or to each job individually if more granular control is needed. However, given that neither job appears to need write permissions, the best solution is to add the permissions block at the root level, right after the name and before the on field, to cover both jobs with contents: read. No methods, other imports, or internal changes 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

Duplicate: 0d7e09c

@thpierce thpierce closed this Oct 14, 2025
@thpierce thpierce deleted the alert-autofix-4 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