Skip to content
Snippets Groups Projects
Commit e4db01b2 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Applying the security [git] fix from 285

parent 0a342953
No related branches found
No related tags found
1 merge request!286Move pre-commit check in its own stage
Pipeline #60260 passed
......@@ -29,6 +29,7 @@ stages:
- python3 bootstrap.py -vv channel base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- conda clean --all
cache:
paths:
......
......@@ -22,6 +22,7 @@ stages:
- curl --silent "${BOOTSTRAP}" --output "bootstrap.py"
- python3 bootstrap.py -vv channel base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- conda activate base
- conda clean --all
cache:
......
......@@ -25,6 +25,7 @@ stages:
- python3 bootstrap.py -vv channel base
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
# for conda inspect during builds (on macos)
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- conda activate base
- bdt ci check -vv
- conda clean --all
......
......@@ -27,6 +27,7 @@ build:
- docker
stage: build
before_script:
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- pip install twine pre-commit sphinx sphinx-rtd-theme
script:
- "[ -r .pre-commit-config.yaml ] && pre-commit run --all-files --show-diff-on-failure --verbose"
......
......@@ -26,6 +26,7 @@ stages:
- source ${CONDA_ROOT}/etc/profile.d/conda.sh
# for conda inspect during builds (on macos)
- conda activate base
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- bdt ci check -vv
- conda clean --all
cache:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment