Skip to content

chore: address open CodeQL notes - #1611

Merged
potiuk merged 1 commit into
mainfrom
fix/code-scanning-notes
Oct 13, 2026
Merged

potiuk merged 1 commit into
mainfrom
fix/code-scanning-notes

Conversation

@zeroshade

Copy link
Copy Markdown
Member

Summary

Type of change

  • Python package (tools/*/ with pyproject.toml)

Test plan

  • contributor-metrics, jira, reproducible-archive: uv run pytest / ruff format --check / mypy pass. ruff check passes for the first and last; jira reports two pre-existing findings in tests/test_bridge_write.py, untouched here and identical on main
  • vetted-ops (no dev group; run as the workspace hook does): pytest / ruff / ruff format / mypy pass
  • prek hooks pass except workspace-pytest, skipped for host-specific failures in container-gateway / symlink-lint that test: isolate container-gateway and symlink-lint fixtures from the host #1608 fixes
  • CodeQL not run locally; the alerts should close on the next analysis of main

Generative AI disclosure

Drafted with Claude Code (Opus 5.5) and reviewed by the author; the commit carries a Generated-by: trailer.

…e-archive, vetted-ops

Resolves code-scanning alerts 66, 69, 100, 101 and 113 without behaviour
changes:
- tests import the module under test one way only (`from pkg import mod
  as alias`) instead of mixing `import pkg.mod` with `from pkg.mod import`;
- test_symlink_mode_is_platform_independent builds both archives before
  asserting, so the assert has no call with side effects;
- the repo-tree jq program in vetted-ops is parenthesised so its
  implicit string concatenation reads as intended, not a missing comma.

Generated-by: Claude Code (Opus 5.5)
@zeroshade
zeroshade requested a review from potiuk October 13, 2026 12:07
@zeroshade zeroshade added family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself labels Oct 13, 2026
@potiuk
potiuk merged commit 0c8319f into main Oct 13, 2026
13 checks passed
@potiuk
potiuk deleted the fix/code-scanning-notes branch October 13, 2026 14:55
potiuk pushed a commit to Kaap10/magpie that referenced this pull request Oct 16, 2026
…e-archive, vetted-ops (apache#1611)

Resolves code-scanning alerts 66, 69, 100, 101 and 113 without behaviour
changes:
- tests import the module under test one way only (`from pkg import mod
  as alias`) instead of mixing `import pkg.mod` with `from pkg.mod import`;
- test_symlink_mode_is_platform_independent builds both archives before
  asserting, so the assert has no call with side effects;
- the repo-tree jq program in vetted-ops is parenthesised so its
  implicit string concatenation reads as intended, not a missing comma.

Generated-by: Claude Code (Opus 5.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

family:tools tools/* substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants