Skip to content

Conversation

pkuczynski
Copy link
Member

Potential fix for https://github.com/rubyconfig/config/security/code-scanning/2

To fix the problem, add a permissions block to the root of the workflow and specify the minimal privileges required. Since this workflow primarily reads repository content and interacts with pull requests and code coverage, the permissions can be limited to contents: read and pull-requests: write. The permissions block will be applied globally to all jobs unless overridden by job-specific permissions.

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

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@pkuczynski pkuczynski changed the title Potential fix for code scanning alert no. 2: Workflow does not contain permissions ci: limit workflow permissions Jul 11, 2025
@pkuczynski pkuczynski self-assigned this Jul 11, 2025
@pkuczynski pkuczynski added this to the Next milestone Jul 11, 2025
@pkuczynski pkuczynski marked this pull request as ready for review July 11, 2025 15:47
@pkuczynski pkuczynski merged commit d639f9d into master Jul 11, 2025
14 checks passed
@pkuczynski pkuczynski deleted the ci/perm branch July 11, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant