Skip to content

Conversation

thpierce
Copy link
Contributor

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

The fix is to add a permissions: key at the top level of the workflow YAML file. Since none of the jobs in this workflow require write access (they perform checkouts, run linters, and build commands but do not push or alter repository content remotely), the minimal permission needed is read access to repository contents. This is done by setting permissions: contents: read at the workflow root, which will apply to all jobs unless overridden—thus limiting the GITHUB_TOKEN to read-only repository contents.

This change should be made immediately following the name and before the on: trigger (i.e., after line 1 and before line 2).

No additional imports or definitions are needed.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…in 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:53
@thpierce thpierce enabled auto-merge (squash) October 14, 2025 17:50
@thpierce thpierce merged commit a7caab6 into main Oct 14, 2025
10 checks passed
@thpierce thpierce deleted the alert-autofix-10 branch October 14, 2025 18:35
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