Skip to content

Conversation

@Cypphi
Copy link
Owner

@Cypphi Cypphi commented Oct 28, 2025

Potential fix for https://github.com/Cypphi/mc-remote-control/security/code-scanning/1

To properly address the problem, add a permissions block at the workflow root (top-level, before jobs:), specifying the minimal permissions necessary for the workflow’s steps. Since these steps (checking out code, validating a Gradle wrapper, setting up Java, building, and uploading artifacts) do not require any write access to the repository contents, the best minimal permission is contents: read. This change should be made in .github/workflows/build.yml by inserting the permissions block after the name and on keys, and before 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>
@Cypphi Cypphi marked this pull request as ready for review October 28, 2025 10:03
@Cypphi Cypphi merged commit 80dfbb8 into 1.21.4 Oct 28, 2025
8 checks passed
@Cypphi Cypphi deleted the alert-autofix-1 branch October 28, 2025 10:04
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