这是indexloc提供的服务,不要输入任何密码
Skip to content

Permission workflows explicitly #52

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 2 commits into from
Jun 27, 2025
Merged

Permission workflows explicitly #52

merged 2 commits into from
Jun 27, 2025

Conversation

OJFord
Copy link
Owner

@OJFord OJFord commented Jun 27, 2025

Potential fix for https://github.com/OJFord/terraform-provider-wireguard/security/code-scanning/4

To fix the issue, we will add a permissions block to the root of the workflow file. This block will apply to all jobs in the workflow unless they have their own permissions block. Based on the actions performed in the workflow, the minimal required permissions are contents: read for accessing the repository's contents and pull-requests: write for any pull request-related operations. Each job will inherit these permissions unless explicitly overridden.


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>
@OJFord OJFord changed the title Potential fix for code scanning alert no. 4: Workflow does not contain permissions Permission workflows explicitly Jun 27, 2025
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@OJFord OJFord marked this pull request as ready for review June 27, 2025 10:01
@OJFord OJFord merged commit 34524b6 into master Jun 27, 2025
9 checks passed
@OJFord OJFord deleted the alert-autofix-4 branch June 27, 2025 10:02
OJFord added a commit that referenced this pull request Jun 27, 2025
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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