Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session safety failed. #1382

Open
man-chi opened this issue Apr 20, 2024 · 0 comments
Open

Session safety failed. #1382

man-chi opened this issue Apr 20, 2024 · 0 comments

Comments

@man-chi
Copy link

man-chi commented Apr 20, 2024

I have followed every line of instruction on quickstart .my pyenv use is also 3.10.2 as stated in quickstart but I have encountered Session safety failed when I do execute nox for full test. the full test will only passed, if I skip the safety session in noxfile.py . please help

I do not make any changes in noxfile.py all files are the exact same as template started from cookie-cutter.

noxfile.py
@session(python=python_versions[0]) def safety(session: Session) -> None: """Scan dependencies for insecure packages.""" requirements = session.poetry.export_requirements() session.install("safety") session.run("safety", "check", "--full-report", f"--file={requirements}")

step to reproduce:

  1. $cookiecutter gh:cjolowicz/cookiecutter-hypermodern-python --checkout=2022.6.3
  2. $nox
    nox > Command safety check --full-report --file=.nox/safety/tmp/requirements.txt failed with exit code 255
    nox > Session safety failed.
Screen Shot 2024-04-20 at 6 10 49 PM
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

No branches or pull requests

1 participant