Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions - #1

Merged
adarsh0707-kumar merged 1 commit into
mainfrom
alert-autofix-1
Sep 14, 2026
Merged

adarsh0707-kumar merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@adarsh0707-kumar

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/adarsh0707-kumar/Database-engine/security/code-scanning/1

Add an explicit permissions block in .github/workflows/cmake-single-platform.yml at the workflow root (top-level, alongside name and on) so it applies to all jobs unless overridden.
For this workflow, the minimal required permission is:

  • contents: read

This preserves existing functionality (checkout/build/test) while enforcing least privilege for GITHUB_TOKEN.

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>
@adarsh0707-kumar
adarsh0707-kumar marked this pull request as ready for review September 14, 2026 08:01
@adarsh0707-kumar
adarsh0707-kumar merged commit 980839a into main Sep 14, 2026
1 of 3 checks passed
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