Skip to content

SECZ-2701: Potential fix for code scanning alert no. 1: Workflow does not contain permissions #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

rbamos
Copy link
Contributor

@rbamos rbamos commented Jun 4, 2025

Potential fix for https://github.com/panorama-ed/panolint-ruby/security/code-scanning/1

To fix the issue, we need to add a permissions block to the workflow. Since the workflow performs basic CI tasks (checking out code, setting up Ruby, and running RuboCop), it only requires contents: read permissions. This block should be added at the root level of the workflow to apply to all jobs unless overridden.

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

@rbamos rbamos marked this pull request as ready for review June 4, 2025 14:17
@rbamos rbamos changed the title Potential fix for code scanning alert no. 1: Workflow does not contain permissions SECZ-2701: Potential fix for code scanning alert no. 1: Workflow does not contain permissions Jun 4, 2025
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@rbamos rbamos force-pushed the SECZ-2701-Fix-CodeQL-1 branch from dc4a0da to 0ab441f Compare June 5, 2025 16:55
@rbamos rbamos enabled auto-merge June 5, 2025 16:55
@rbamos rbamos merged commit 93e50a4 into main Jun 5, 2025
5 checks passed
@rbamos rbamos deleted the SECZ-2701-Fix-CodeQL-1 branch June 5, 2025 16:55
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