[Python] Ignore Beta version suggestions in safety check results - Jenkins pipeline

Discussão em 'Python' iniciado por Stack, Setembro 17, 2024.

  1. Stack

    Stack Membro Participativo

    I have a Jenkins pipeline where I am scanning my requirements.txt file with

    safety check -r requirements.txt


    This leads to generating a vulnerability report where the advisory is an upgrade to a beta package. For example, 2.0.0b1.

    Now my pipeline fails as this is a vulnerability and it is set to fail upon finding vulnerabilities. Is there a way to suppress these "ADVISORIES" if beta version is coming up as suggestions?

    I have tried writing to file and reading from that but that doesn't work.

    I have also tried safety check -r requirements.txt --ignore 12345 but this requires me to know the vulnerability id in advance.

    Any suggestions are welcome. Thank you in advance.

    Continue reading...

Compartilhe esta Página