Skip to content

fix: lock-check verifies consistency without forcing version upgrades#270

Merged
luis5tb merged 2 commits into
RHEcosystemAppEng:mainfrom
luis5tb:lock-check-fix
May 29, 2026
Merged

fix: lock-check verifies consistency without forcing version upgrades#270
luis5tb merged 2 commits into
RHEcosystemAppEng:mainfrom
luis5tb:lock-check-fix

Conversation

@luis5tb
Copy link
Copy Markdown
Collaborator

@luis5tb luis5tb commented May 29, 2026

The CI lock-file-check and make lock-check were resolving fresh dependency versions on every run, failing whenever a transitive dep released a new version even though the lock file was consistent with pyproject.toml. Fix by copying the existing lock file before uv pip compile so uv uses pinned versions as preferences. Also adds pip-audit for vulnerability scanning (non-blocking CI job + make audit target).

@yuvalk
Copy link
Copy Markdown
Collaborator

yuvalk commented May 29, 2026

but why are you doing both in a single commit?

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
python3.12 -m pip install pip-audit

- name: Scan agent dependencies
run: python3.12 -m pip_audit -r requirements-agent.txt
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why not use make cve-scan? (which uses trivy

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this run in a container right? that would require changes to run it easily. We can add that one too later if we see it fit (or replace it)

@luis5tb
Copy link
Copy Markdown
Collaborator Author

luis5tb commented May 29, 2026

but why are you doing both in a single commit?

yep, I'll split into 2 commits

luis5tb and others added 2 commits May 29, 2026 12:05
Add cp before each uv pip compile so --output-file uses pinned versions
as preferences (verifies consistency without forcing version upgrades).
Drop venv activation from the Makefile lock-check target so it works both
locally and in CI, then replace the inline verification steps in ci.yml
with a single make lock-check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add pip-audit as a dev dependency and a Makefile audit target for local
dependency vulnerability scanning. Add a CI vulnerability-scan job that
calls make audit to check agent, handler, and dev lock files for known
CVEs (non-blocking, continue-on-error).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@luis5tb luis5tb merged commit e178b6a into RHEcosystemAppEng:main May 29, 2026
12 of 13 checks passed
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