Skip to content

Conversation

@cedi
Copy link
Member

@cedi cedi commented Jun 4, 2025

Potential fix for https://github.com/SpechtLabs/CalendarAPI/security/code-scanning/1

To fix the issue, we need to add an explicit permissions block to the build job. Since the job only involves reading repository contents and uploading artifacts, the minimal required permission is contents: read. This change ensures that the build job adheres to the principle of least privilege and does not inherit unnecessary permissions from the repository.

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>
@cedi cedi marked this pull request as ready for review June 4, 2025 22:08
@cedi cedi merged commit 994cc9b into main Jun 4, 2025
10 checks passed
@cedi cedi deleted the alert-autofix-1 branch June 4, 2025 22:09
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