Skip to content

Conversation

shenxianpeng
Copy link
Contributor

Potential fix for https://github.com/cpp-linter/clang-tools-static-binaries/security/code-scanning/1

To fix the issue, we will add a permissions block at the root level of the workflow. Since this is a pre-commit workflow, it likely only needs read access to the repository contents. We will set contents: read as the minimal required permission. This change ensures that the workflow adheres to the principle of least privilege and avoids granting unnecessary write permissions.


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>
@shenxianpeng shenxianpeng marked this pull request as ready for review May 28, 2025 17:10
@shenxianpeng shenxianpeng merged commit c98427d into master May 28, 2025
5 checks passed
@shenxianpeng shenxianpeng deleted the alert-autofix-1 branch May 28, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant