Skip to content

Conversation

Cleboost
Copy link
Owner

Potential fix for https://github.com/Cleboost/Rustmius/security/code-scanning/2

To fix the problem, add a permissions block that restricts the GITHUB_TOKEN's capabilities. Since this workflow only deals with pushing to the AUR (via SSH), it does not need any write permissions to the GitHub repository. It's best to set contents: read (the lowest level necessary for most actions) at the workflow level, making it apply to all jobs unless overridden. The change should be made at the top of the .github/workflows/aur.yml, immediately after (or before) the on: block, by inserting:

permissions:
  contents: read

No code imports, method changes, or additional dependencies are required.

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>
@Cleboost Cleboost marked this pull request as ready for review September 24, 2025 21:02
@Cleboost Cleboost merged commit 180615c into master Sep 24, 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.

1 participant