Skip to content

Conversation

arjunsuresh
Copy link
Contributor

Potential fix for https://github.com/mlcommons/mlcflow/security/code-scanning/10

To fix this problem, add a permissions: block at the root of the workflow file .github/workflows/test-mlc-core-actions.yaml. This block should specify the least privileges necessary for all jobs in the workflow, which, according to the visible steps, is only contents: read. The block should be placed just below the name: and before the on: key. This change will ensure that the GITHUB_TOKEN is granted only read access to repository contents, significantly reducing potential security exposure. No changes to jobs or steps are required.

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>
Copy link

github-actions bot commented Sep 4, 2025

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@arjunsuresh arjunsuresh marked this pull request as ready for review September 4, 2025 15:47
@arjunsuresh arjunsuresh requested a review from a team as a code owner September 4, 2025 15:47
@anandhu-eng anandhu-eng merged commit b1da79b into main Sep 4, 2025
38 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2025
@anandhu-eng anandhu-eng deleted the alert-autofix-10 branch September 9, 2025 13:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants