Skip to content

ci(codeql): skip alembic migrations in analysis - #107

Merged
AntoineJT merged 1 commit into
masterfrom
ci/codeql-ignore-alembic-migrations
Sep 16, 2026
Merged

AntoineJT merged 1 commit into
masterfrom
ci/codeql-ignore-alembic-migrations

Conversation

@AntoineJT

Copy link
Copy Markdown
Member

Alembic revisions declare revision, down_revision, branch_labels and depends_on for Alembic to read by introspection, so CodeQL flags each one with py/unused-global-variable. Move the query suite to the config input so it can carry a paths-ignore for alembic/versions.

Keeping the configuration inline rather than in a separate file leaves it covered by the existing .github/workflows/* CODEOWNERS rule.

Alembic revisions declare `revision`, `down_revision`, `branch_labels`
and `depends_on` for Alembic to read by introspection, so CodeQL flags
each one with py/unused-global-variable. Move the query suite to the
`config` input so it can carry a `paths-ignore` for alembic/versions.

Keeping the configuration inline rather than in a separate file leaves
it covered by the existing `.github/workflows/*` CODEOWNERS rule.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@AntoineJT
AntoineJT merged commit a918c67 into master Sep 16, 2026
5 checks passed
@AntoineJT
AntoineJT deleted the ci/codeql-ignore-alembic-migrations branch September 16, 2026 23:42
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