Skip to content

Conversation

@thpierce
Copy link
Contributor

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

To fix this problem, an explicit permissions block should be added to the workflow. The permissions should be set to cover only what the workflow actually needs. For actions/create-release, the minimal required permission is typically contents: write to allow tagging and releasing code. This block can be placed either globally at the workflow root (for all jobs) or specifically within the release job. Here, since there's only one job, adding it at the job level increases clarity about its scope. We will update .github/workflows/Release.yaml, adding a permissions: block with contents: write under the release job definition (right after line 11), and ensure indentation matches the structure.

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 4900e83 into master Oct 14, 2025
8 of 14 checks passed
@thpierce thpierce deleted the alert-autofix-2 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