Skip to content

Conversation

@beckermarc
Copy link
Collaborator

Potential fix for https://github.com/capire/xflights-java/security/code-scanning/1

To fix this issue, add a minimal explicit permissions block at the top level of the workflow YAML file (.github/workflows/maven.yml), before the jobs: section. Since this workflow only checks out code and builds with Maven (reads source, runs tests, does not push, open issues, etc.), it suffices to grant only contents: read. This restricts the GITHUB_TOKEN to the least privilege needed and avoids unintended write access. You do not need to modify existing jobs or steps. Ensure the block uses correct YAML indentation.


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>
@beckermarc beckermarc marked this pull request as ready for review October 14, 2025 09:20
@beckermarc beckermarc enabled auto-merge (squash) October 14, 2025 09:20
@beckermarc beckermarc merged commit 1f7950b into main Oct 17, 2025
6 checks passed
@beckermarc beckermarc deleted the alert-autofix-1 branch October 17, 2025 11:07
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.

3 participants