Skip to content

Conversation

thpierce
Copy link
Contributor

Potential fix for https://github.com/aws-observability/aws-application-signals-test-framework/security/code-scanning/8

To fix this issue, an explicit permissions block should be added to the all-codeql-checks-pass job in .github/workflows/codeql.yml, with the minimal permissions necessary for its steps. The job merely checks workflow/job results and does not interact with or modify repository contents, so contents: read is both GitHub's recommended minimal starting point and sufficient for this case.
The permissions block must be added at the same indentation level as runs-on within the all-codeql-checks-pass job definition (after line 109), to avoid affecting the global workflow or other 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>
@thpierce thpierce marked this pull request as ready for review October 14, 2025 16:51
@thpierce thpierce enabled auto-merge (squash) October 14, 2025 17:50
@thpierce thpierce merged commit 4ca5d60 into main Oct 14, 2025
10 checks passed
@thpierce thpierce deleted the alert-autofix-8 branch October 14, 2025 18:50
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