Skip to content

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

Merged
pgiralt merged 1 commit into
masterfrom
alert-autofix-4
Aug 31, 2026
Merged

pgiralt merged 1 commit into
masterfrom
alert-autofix-4

Conversation

@pgiralt

@pgiralt pgiralt commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/pgiralt/axltoolkit/security/code-scanning/4

Add an explicit top-level permissions block in .github/workflows/ci.yml so every job gets least-privilege token access by default.

Best fix (without changing behavior): add

permissions:
  contents: read

directly under the on: trigger section (before jobs:). This satisfies CodeQL and preserves existing workflow logic. No new imports, methods, or dependencies are needed, since this is YAML configuration only.

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>
@pgiralt
pgiralt marked this pull request as ready for review August 31, 2026 19:54
@pgiralt
pgiralt merged commit b47966f into master Aug 31, 2026
13 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