Skip to content
Snippets Groups Projects
Commit dd3febfb authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/issue92' into 'master'

fix: correct bandit exclude of .venv and .cache

Closes #92

See merge request to-be-continuous/python!127
parents 3b7aac68 ed955279
No related branches found
No related tags found
No related merge requests found
...@@ -1221,15 +1221,15 @@ py-bandit: ...@@ -1221,15 +1221,15 @@ py-bandit:
- | - |
if [[ "$SONAR_HOST_URL" ]] if [[ "$SONAR_HOST_URL" ]]
then then
_run bandit ${TRACE+--verbose} --exit-zero --exclude ./.cache --exclude ./.venv --format csv --output reports/py-bandit.bandit.csv ${BANDIT_ARGS} _run bandit ${TRACE+--verbose} --exit-zero --exclude ./.cache,./.venv --format csv --output reports/py-bandit.bandit.csv ${BANDIT_ARGS}
fi fi
# JSON (for DefectDojo) # JSON (for DefectDojo)
- | - |
if [[ "$DEFECTDOJO_BANDIT_REPORTS" ]] if [[ "$DEFECTDOJO_BANDIT_REPORTS" ]]
then then
_run bandit ${TRACE+--verbose} --exit-zero --exclude ./.cache --exclude ./.venv --format json --output reports/py-bandit.bandit.json ${BANDIT_ARGS} _run bandit ${TRACE+--verbose} --exit-zero --exclude ./.cache,./.venv --format json --output reports/py-bandit.bandit.json ${BANDIT_ARGS}
fi fi
- _run bandit ${TRACE+--verbose} --exclude ./.cache --exclude ./.venv ${BANDIT_ARGS} - _run bandit ${TRACE+--verbose} --exclude ./.cache,./.venv ${BANDIT_ARGS}
artifacts: artifacts:
when: always when: always
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment