Skip to content

Suppress CodeQL [SM02167]#2566

Open
shaahji wants to merge 1 commit into
mainfrom
shaahji/CodeQL_SM02167
Open

Suppress CodeQL [SM02167]#2566
shaahji wants to merge 1 commit into
mainfrom
shaahji/CodeQL_SM02167

Conversation

@shaahji

@shaahji shaahji commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Suppress CodeQL [SM02167]

Computed hash is used solely for creating uniques directory names in cache, not a security-sensitive usage.

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Copilot AI review requested due to automatic review settings July 9, 2026 20:37
@shaahji shaahji enabled auto-merge (squash) July 9, 2026 20:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to suppress a CodeQL alert related to using hashlib.md5 in olive/passes/diffusers/lora.py, clarifying that the computed hash is only used to generate deterministic cache directory names (not for any security-sensitive purpose).

Changes:

  • Adds an inline comment intended to suppress CodeQL alert SM02167 for an md5 usage.
  • Reformats the prompt_hash computation into a multi-line expression.

Comment thread olive/passes/diffusers/lora.py Outdated
Computed hash is used solely for creating uniques directory names in
cache, not a security-sensitive usage.
@shaahji shaahji force-pushed the shaahji/CodeQL_SM02167 branch from aaa4d28 to fdf28ba Compare July 9, 2026 20:48
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.

2 participants