mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
fix(ci): fix import sorting and ignore unfixed pygments CVE
- Sort imports in seed-gen/task.py to satisfy ruff I001 - Add CVE-2026-4539 (pygments ReDoS, no fix available) to pip-audit ignore list in CI workflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Francesco Bertolaccini
parent
f955bf12d1
commit
16a6930a94
@@ -135,11 +135,15 @@ jobs:
|
||||
if: always()
|
||||
run: |
|
||||
# Ignore CVEs with no available fix:
|
||||
# - CVE-2025-67221: orjson DoS via deeply nested JSON (no fix available)
|
||||
# - CVE-2026-0994: protobuf DoS via json_format.ParseDict (no fix available)
|
||||
# - CVE-2026-4539: pygments ReDoS in AdlLexer (no fix available)
|
||||
# Use --skip-editable to ignore local packages not on PyPI
|
||||
# Use uvx to run pip-audit in an isolated environment
|
||||
uvx pip-audit --strict --desc \
|
||||
--skip-editable \
|
||||
--ignore-vuln CVE-2025-67221 \
|
||||
--ignore-vuln CVE-2026-0994 \
|
||||
--ignore-vuln CVE-2026-4539
|
||||
working-directory: ${{ matrix.component }}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ from buttercup.common.llm import ButtercupLLM, create_default_llm, get_langfuse_
|
||||
from buttercup.common.project_yaml import ProjectYaml
|
||||
from buttercup.program_model.codequery import CodeQueryPersistent
|
||||
from buttercup.program_model.utils.common import Function, TypeDefinition
|
||||
from langchain_core.prompts import ChatPromptTemplate
|
||||
from langchain_core.language_models import BaseChatModel
|
||||
from langchain_core.messages import BaseMessage, ToolMessage
|
||||
from langchain_core.prompts import ChatPromptTemplate
|
||||
|
||||
Reference in New Issue
Block a user