Skip to content

Conversation

@WillemJiang
Copy link
Member

Potential fix for https://github.com/alc-beijing/alc-site/security/code-scanning/6

To fix the problem, add a permissions block to the workflow to restrict the GITHUB_TOKEN permissions to the minimum required. Since the workflow only checks out code and builds the site, it does not need write access to repository contents or other resources. The minimal required permission is contents: read. This block should be added at the root level of the workflow (above jobs:) so it applies to all jobs unless overridden. No additional imports or definitions are needed; simply add the block in the appropriate location.

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>
@WillemJiang WillemJiang marked this pull request as ready for review August 21, 2025 03:34
@WillemJiang WillemJiang merged commit 4296537 into master Aug 21, 2025
4 checks passed
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