Skip to content
Discussion options

You must be logged in to vote

The behavior of --prefer-lowest to skip installation of insecure versions is correct and should remain.

To explain why, imagine there is CVE reported against an old version of a library you depend on. This vulnerability allows remote code execution when the library code is autoloaded in a way that is triggerable in GitHub actions. The library authors marked the version insecure and published a safe new version. Now your CI system with --prefer-lowest would continue to install the old vulnerable version and effectively allow third parties to execute code in your GitHub action. The only safe default is to prevent installation of such insecure versions by default.

Preventing the installation…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@alexander-schranz
Comment options

Comment options

You must be logged in to vote
3 replies
@naderman
Comment options

@Seldaek
Comment options

@alexander-schranz
Comment options

Comment options

You must be logged in to vote
5 replies
@Seldaek
Comment options

@alexander-schranz
Comment options

@naderman
Comment options

@alexander-schranz
Comment options

@Seldaek
Comment options

Answer selected by Seldaek
Comment options

You must be logged in to vote
1 reply
@Seldaek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants