Skip to content

Commit 01381e8

Browse files
committed
fix(ci): add --remove-untracked to poetry install
this option makes poetry remove packages from the venv if they are not referenced in poetry.lock anymore. This prevent safety from detecting vulnerability in unused packages
1 parent 9c3d956 commit 01381e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ default:
3232
before_script:
3333
- poetry -V
3434
- poetry run python -m pip install --upgrade pip
35-
- poetry install --no-root
35+
- poetry install --no-root --remove-untracked
3636
- poetry run python --version
3737
image: registry.gitlab.com/tankerhq/docker/sdk-python:latest
3838

@@ -87,7 +87,7 @@ stages:
8787
.before-script/download-artifacts:
8888
before_script:
8989
- poetry run python -m pip install --upgrade pip
90-
- poetry install --no-root
90+
- poetry install --no-root --remove-untracked
9191
- poetry run python run-ci.py download-artifacts --project-id=$UPSTREAM_PROJECT_ID --pipeline-id=$UPSTREAM_PIPELINE_ID --job-name=$UPSTREAM_JOB_NAME
9292

9393
###############

0 commit comments

Comments
 (0)