Skip to content

Conversation

@nstarman
Copy link
Contributor

Potential fix for https://github.com/GalacticDynamics/quaxed/security/code-scanning/1

To address the problem, explicitly add a permissions block to the workflow file to limit the default permissions of the GITHUB_TOKEN to only those required by the workflow. The jobs provided require access to repository contents (for code checkout) and, since they use Codecov and do not perform "write" actions to the repository, the minimal required permission is contents: read. You can set this permission at the root of the workflow—before the jobs: key—to apply it to all jobs; per-job blocks can be added if some jobs need more permissions, but for these jobs none of them do. The change should be made near the top of the .github/workflows/ci.yml file, right after the workflow's name block and before the on: key.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

@nstarman nstarman added this to the v0.10.x milestone Oct 18, 2025
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Nathaniel Starkman <[email protected]>
@nstarman nstarman marked this pull request as ready for review October 18, 2025 16:58
@nstarman nstarman merged commit 2d3576f into main Oct 18, 2025
19 checks passed
@nstarman nstarman deleted the alert-autofix-1 branch October 18, 2025 16:59
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