Skip to content

Add pip-audit failure hints and extend Renovate customManagers - #341

Merged
bubacoder merged 2 commits into
mainfrom
audit
Jun 15, 2026
Merged

Add pip-audit failure hints and extend Renovate customManagers#341
bubacoder merged 2 commits into
mainfrom
audit

Conversation

@bubacoder

@bubacoder bubacoder commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Chores
    • Enhanced continuous integration error reporting with automated remediation guidance for failed dependency checks
    • Expanded dependency version detection across multiple infrastructure configuration formats for improved dependency tracking

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@bubacoder, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 405a8c68-a76c-4227-ba86-21ebd580a683

📥 Commits

Reviewing files that changed from the base of the PR and between 29c5e8e and a6fd829.

⛔ Files ignored due to path filters (1)
  • scripts/infra-mcp/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • .github/workflows/pre-commit.yml
  • renovate.json

Walkthrough

The pre-commit workflow gains two if: failure() steps that emit CI error annotations and print remediation commands for pip-audit failures on scripts/requirements.txt and scripts/infra-mcp. Separately, renovate.json adds three regex-based customManagers to detect inline # renovate: version annotations in GitHub Actions workflows, shell scripts, and Ansible YAML files.

Changes

CI Failure Hints and Renovate Custom Managers

Layer / File(s) Summary
pip-audit failure fix instructions
.github/workflows/pre-commit.yml
Adds two conditional if: failure() steps after each pip-audit audit step — one for scripts/requirements.txt and one for scripts/infra-mcp — each printing a CI error annotation with shell commands to update dependencies and rerun pip-audit.
Renovate regex customManagers for inline annotations
renovate.json
Adds three regex customManagers entries that parse # renovate: datasource=... depName=... inline comments from GitHub Actions workflow scripts, shell scripts (exported/readonly variables), and Ansible YAML, with a conditional extractVersionTemplate defaulting to ^v?(?<version>.+)$.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • bubacoder/infra#316: Also extends renovate.json customManagers with regex-based extractors targeting inline version/dependency hints in workflow and script files, directly overlapping with the new custom manager entries.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes both main changes: adding pip-audit failure hints to the pre-commit workflow and extending Renovate's customManagers configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch audit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/pre-commit.yml:
- Around line 22-24: The current `if: failure()` condition is too broad and
triggers when any previous step fails, potentially emitting false "vulnerable
dependencies found" messages. Replace this condition with a step-specific
outcome check (like `if: steps.<step_id>.outcome == 'failure'`) that references
only the actual audit/dependency check step that precedes the "Show fix
instructions on failure" step. Apply this same fix to the other occurrence
mentioned in the comment where the issue appears.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1aa33d9f-cdd9-443b-a48e-c033abb9d141

📥 Commits

Reviewing files that changed from the base of the PR and between 9c5b11f and 29c5e8e.

📒 Files selected for processing (2)
  • .github/workflows/pre-commit.yml
  • renovate.json

Comment thread .github/workflows/pre-commit.yml
@bubacoder
bubacoder merged commit 2ed5b10 into main Jun 15, 2026
6 checks passed
@bubacoder
bubacoder deleted the audit branch June 15, 2026 21:22
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