Skip to content

Conversation

@thpierce
Copy link
Contributor

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

To fix the problem, add a permissions block limiting GITHUB_TOKEN to read-only access to repository contents. The most straightforward approach is to add the following at the workflow root level (e.g., after the name: field), which will apply the restricted permissions to the entire workflow. This covers all jobs (in this case, just the lint job) and ensures that no unnecessary write access is granted. No imports, methods, or other code changes are required; this is a simple YAML edit.


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:47
@thpierce thpierce requested a review from a team as a code owner October 14, 2025 16:47
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.31%. Comparing base (0963c1a) to head (eaa3d64).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #727   +/-   ##
=======================================
  Coverage   84.31%   84.31%           
=======================================
  Files          36       36           
  Lines        1817     1817           
=======================================
  Hits         1532     1532           
  Misses        285      285           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@thpierce thpierce merged commit e5002d7 into master Oct 14, 2025
15 checks passed
@thpierce thpierce deleted the alert-autofix-3 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.

3 participants