Skip to content

pipenv check --auto-install --scan fails #6405

Open
@BehnazMoradabadi

Description

@BehnazMoradabadi

Issue description

pipenv check --auto-install --scan --use-installed --key -API_KEY fails with an output value error during the vulnerability scan.

Expected result

The command should successfully complete the vulnerability scan and display the results.

Actual result

Error: Invalid value for '--output' (env var: 'None'): <ScanOutput.SCREEN: 'screen'> is not one of 'json', 'spdx', '[email protected]', '[email protected]', 'html', 'screen', 'none'.

And if I run
pipenv check --auto-install --scan --use-installed --key API_KEY --ouput json

it gives

Checking PEP 508 requirements...
Passed!
Scanning installed packages for vulnerabilities...
Created temporary requirements file: /tmp/pipenv_safety_6j89ag78.txt
Wrong format for the JSON report.

Steps to replicate

pipenv check --auto-install --scan --use-installed --key -API_KEY


$ pipenv --support

Pipenv version: '2025.0.2'

Pipenv location: '/usr/local/lib/python3.12/site-packages/pipenv'

Python location: '/usr/local/bin/python3.12'

OS Name: 'posix'

User pip version: '25.0.1'

user Python installations found:

  • 3.12.8: /home/user/.local/share/virtualenvs/source-ULxectDb/bin/python3
  • 3.12.8: /home/user/.local/share/virtualenvs/source-ULxectDb/bin/python
  • 3.12.8: /usr/local/bin/python3
  • 3.12.8: /usr/local/bin/python

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.12.8',
 'os_name': 'posix',
 'platform_machine': 'aarch64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.15.49-linuxkit-pr',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023',
 'python_full_version': '3.12.8',
 'python_version': '3.12',
 'sys_platform': 'linux'}

System environment variables:

  • HOSTNAME
  • DEBUG
  • SHLVL
  • HOME
  • USER_SELF_API_ENDPOINT
  • PYTHONUNBUFFERED
  • GPG_KEY
  • APPLICATION_VERSION
  • PS1
  • PYTHON_SHA256
  • PYTHONDONTWRITEBYTECODE
  • DJANGO_SUPERUSER_PASSWORD
  • USER_IDENTITY_API_ENDPOINT
  • PIP_DISABLE_PIP_VERSION_CHECK
  • TERM
  • PATH
  • POSTGRES_HOST
  • PIPENV_ACTIVE
  • LANG
  • VIRTUAL_ENV_PROMPT
  • PYTHON_VERSION
  • PIP_PYTHON_PATH
  • VIRTUAL_ENV
  • PWD

Pipenv–specific environment variables:

  • PIPENV_ACTIVE: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions