Skip to content

Fix exit code bug when no policy is present and fix --policy-file ignore - #904

Open
ChickenisLegit wants to merge 1 commit into
pyupio:mainfrom
ChickenisLegit:fix-policy-exit-code
Open

Fix exit code bug when no policy is present and fix --policy-file ignore#904
ChickenisLegit wants to merge 1 commit into
pyupio:mainfrom
ChickenisLegit:fix-policy-exit-code

Conversation

@ChickenisLegit

Copy link
Copy Markdown

Fixes #821 and #859. When no policy is present, safety scan now correctly returns a non-zero exit code if vulnerabilities are found. When a local policy file is explicitly provided with --policy-file, it is no longer ignored in favor of the cloud policy.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 11423065-98fc-442f-99af-920f88374779

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

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.

Zero exit code returned when vulnerability detected

1 participant