Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions #123

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 6, 2025

Conversation

arslanbekov
Copy link
Member

Potential fix for https://github.com/OpenVPN/terraform-provider-cloudconnexa/security/code-scanning/3

To fix the issue, we will add a permissions block at the root level of the workflow to apply to all jobs. Since the workflow only involves building and testing code, the minimal required permission is contents: read. This ensures that the workflow has the least privilege necessary to perform its tasks.


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>
Signed-off-by: Denis Arslanbekov <[email protected]>
@arslanbekov arslanbekov marked this pull request as ready for review June 6, 2025 16:59
@arslanbekov arslanbekov requested a review from a team as a code owner June 6, 2025 16:59
@arslanbekov arslanbekov merged commit 8460a74 into main Jun 6, 2025
4 checks passed
@arslanbekov arslanbekov deleted the alert-autofix-3 branch June 6, 2025 18:48
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.

1 participant