Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions #54

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

Conversation

cedi
Copy link
Member

@cedi cedi commented Jun 4, 2025

Potential fix for https://github.com/SpechtLabs/StaticPages/security/code-scanning/2

To fix the issue, we will add a permissions block to the build job, explicitly setting contents: read. This ensures that the GITHUB_TOKEN used in the build job has only the minimal permissions required to perform its tasks. The deploy-gh-pages and deploy-static-pages jobs already have explicit permissions, so no changes are needed for them.

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:03
@cedi cedi merged commit 649889b into main Jun 4, 2025
9 checks passed
@cedi cedi deleted the alert-autofix-2 branch June 4, 2025 22:04
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