Skip to content

Conversation

@freinold
Copy link
Owner

Potential fix for https://github.com/freinold/gliner-api/security/code-scanning/19

To fix the issue, we will add a permissions block at the root of the workflow file. This block will explicitly define the minimal permissions required for the workflow. Since the workflow appears to perform linting using Ruff and does not modify the repository, the contents: read permission is sufficient. This ensures the workflow adheres to the principle of least privilege.


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>
@freinold freinold marked this pull request as ready for review June 23, 2025 20:18
Copilot AI review requested due to automatic review settings June 23, 2025 20:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a permissions block at the root of the Ruff GitHub Actions workflow to comply with the principle of least privilege and address the code scanning alert.

  • Adds explicit contents: read permission for the workflow.

@freinold freinold merged commit 5a47ffe into main Jun 23, 2025
5 checks passed
@freinold freinold deleted the alert-autofix-19 branch June 23, 2025 20:19
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