Commit 0731ebb3 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'docs-simpler-scan-non-supported-dependency-files' into 'master'

Dependency Scanning: Simplify Poetry workaround

See merge request gitlab-org/gitlab!67480
parents 32613a4b f229c70b
...@@ -636,25 +636,17 @@ include: ...@@ -636,25 +636,17 @@ include:
- template: Dependency-Scanning.gitlab-ci.yml - template: Dependency-Scanning.gitlab-ci.yml
stages: stages:
- .pre
- test - test
variables: variables:
PIP_REQUIREMENTS_FILE: "requirements-converted.txt" PIP_REQUIREMENTS_FILE: "requirements-converted.txt"
convert-poetry: gemnasium-python-dependency_scanning:
stage: .pre # Work around https://gitlab.com/gitlab-org/gitlab/-/issues/7006
image: python:3-slim before_script:
script:
- pip install poetry # Or via another method: https://python-poetry.org/docs/#installation - pip install poetry # Or via another method: https://python-poetry.org/docs/#installation
- poetry export --output "$PIP_REQUIREMENTS_FILE" - poetry export --output="$PIP_REQUIREMENTS_FILE"
artifacts: - rm poetry.lock pyproject.toml
paths:
- "$PIP_REQUIREMENTS_FILE"
dependency_scanning:
stage: test
dependencies: ["convert-poetry"]
``` ```
### `Error response from daemon: error processing tar file: docker-tar: relocation error` ### `Error response from daemon: error processing tar file: docker-tar: relocation error`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment