Skip to content

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

Merged
KarlGrear merged 1 commit into
mainfrom
alert-autofix-1
May 18, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#15
KarlGrear merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@KarlGrear

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/KarlGrear/EDAI/security/code-scanning/1

Add an explicit permissions block to .github/workflows/build.yml at the workflow root level (best here since there is currently one job and no job-specific overrides needed). Set:

  • contents: read

This is the minimal and appropriate permission for checkout/build/test behavior shown. No imports, methods, or dependencies are needed. Place it after the on: trigger block and before env: (or before jobs:) so it applies to all jobs unless overridden.

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>
@KarlGrear KarlGrear self-assigned this May 18, 2026
@KarlGrear KarlGrear marked this pull request as ready for review May 18, 2026 23:37

@KarlGrear KarlGrear left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@KarlGrear KarlGrear merged commit 1f82266 into main May 18, 2026
4 checks passed
@KarlGrear KarlGrear deleted the alert-autofix-1 branch May 18, 2026 23:39
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