Skip to content

Potential fix for code scanning alert no. 11: Workflow does not contain permissions#12

Merged
kelsoncm merged 1 commit intomainfrom
alert-autofix-11
Apr 8, 2026
Merged

Potential fix for code scanning alert no. 11: Workflow does not contain permissions#12
kelsoncm merged 1 commit intomainfrom
alert-autofix-11

Conversation

@kelsoncm
Copy link
Copy Markdown
Owner

@kelsoncm kelsoncm commented Apr 8, 2026

Potential fix for https://github.com/kelsoncm/sc4/security/code-scanning/11

Add an explicit top-level permissions block so all jobs get a safe default (contents: read), while preserving existing job-specific overrides (deploy jobs already define their own permissions and will continue to do so).

Best single fix without changing functionality:

  • Edit .github/workflows/pythonapp.yml
  • Insert after the on: triggers (before jobs:) a root-level:
    • permissions:
    • contents: read

This resolves the CodeQL finding for jobs lacking explicit permissions (quality, test) and keeps deploy jobs unchanged.

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

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kelsoncm kelsoncm marked this pull request as ready for review April 8, 2026 17:25
@kelsoncm kelsoncm merged commit a2c00d2 into main Apr 8, 2026
@kelsoncm kelsoncm deleted the alert-autofix-11 branch April 8, 2026 17:43
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