Skip to content

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

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
May 15, 2025

Conversation

JamieSinn
Copy link
Member

Potential fix for https://github.com/DevCycleHQ/java-server-sdk/security/code-scanning/3

To fix the issue, add a permissions block at the root of the workflow file. Since the workflow only appears to require access to repository contents (e.g., for checking out code), the permissions can be restricted to contents: read. This ensures that the workflow operates with the least privileges necessary to complete its tasks.

The permissions block should be added immediately after the name field in the workflow file. This will apply the permissions to all jobs in the workflow.


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

@JamieSinn JamieSinn changed the title Potential fix for code scanning alert no. 3: Workflow does not contain permissions chore: Potential fix for code scanning alert no. 3: Workflow does not contain permissions May 15, 2025
@JamieSinn JamieSinn marked this pull request as ready for review May 15, 2025 17:24
@JamieSinn JamieSinn enabled auto-merge (squash) May 15, 2025 17:24
@JamieSinn JamieSinn requested a review from a team May 15, 2025 17:30
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@JamieSinn JamieSinn merged commit 882668a into main May 15, 2025
8 checks passed
@JamieSinn JamieSinn deleted the alert-autofix-3 branch May 15, 2025 17:35
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.

2 participants