Skip to content

Resolve open code scanning alerts - #3755

Merged
Kludex merged 1 commit into
mainfrom
resolve-code-scanning-alerts
Oct 24, 2026
Merged

Kludex merged 1 commit into
mainfrom
resolve-code-scanning-alerts

Conversation

@Kludex

@Kludex Kludex commented Oct 24, 2026

Copy link
Copy Markdown
Member

Closes the four open alerts on https://github.com/modelcontextprotocol/python-sdk/security/code-scanning. No linked issue: maintainer housekeeping.

Motivation and Context

  • zizmor/self-repository (x2): reference shared.yml with the $/ self-repository syntax GitHub recommends for same-repo reusable workflows, instead of the workspace-relative ./ form.
  • zizmor/archived-uses: pre-commit/mirrors-prettier is archived. Move the hook to the maintained rbubley/mirrors-prettier mirror.
  • js/bad-tag-filter (CodeQL): the <script> extraction regex in tests/docs_src/test_apps.test.js gets the i flag. It only reads a known constant from the example server, but case-insensitivity is the one condition the rule checks for this pattern.

How Has This Been Tested?

  • zizmor .github/workflows .pre-commit-config.yaml no longer reports the two findings.
  • pre-commit run prettier --all-files passes with the new mirror. Prettier 3.9.10 reports every yaml/json5 file already formatted, so nothing is reformatted.
  • node --test tests/docs_src/test_apps.test.js passes.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I am assigned to the linked issue (or it is labeled help wanted, or I'm a maintainer)
  • I have disclosed any AI assistance and can explain the change in my own words
  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

The $/ syntax is not available on GitHub Enterprise Server, which doesn't affect this repository.

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

- Reference the shared workflow with the self-repository `$/` syntax
  (zizmor self-repository)
- Move the prettier hook to the maintained rbubley/mirrors-prettier mirror,
  since pre-commit/mirrors-prettier is archived (zizmor archived-uses)
- Make the <script> extraction regex in the docs app test case-insensitive
  (CodeQL js/bad-tag-filter)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T15:37:00.470563Z cf3c8aa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 4 files

Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/publish-pypi.yml
@Kludex
Kludex merged commit 86ca12b into main Oct 24, 2026
40 checks passed
@Kludex
Kludex deleted the resolve-code-scanning-alerts branch October 24, 2026 16:46
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