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

fix(bandit): exclude .cache/ dir

closes #58
parent b4d95fb0
No related branches found
No related tags found
No related merge requests found
...@@ -976,15 +976,15 @@ py-bandit: ...@@ -976,15 +976,15 @@ py-bandit:
- | - |
if [[ "$SONAR_HOST_URL" ]] if [[ "$SONAR_HOST_URL" ]]
then then
_run bandit ${TRACE+--verbose} --exit-zero --format csv --output reports/py-bandit.bandit.csv ${BANDIT_ARGS} _run bandit ${TRACE+--verbose} --exit-zero --exclude ./.cache --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 --format json --output reports/py-bandit.bandit.json ${BANDIT_ARGS} _run bandit ${TRACE+--verbose} --exit-zero --exclude ./.cache --format json --output reports/py-bandit.bandit.json ${BANDIT_ARGS}
fi fi
- _run bandit ${TRACE+--verbose} ${BANDIT_ARGS} - _run bandit ${TRACE+--verbose} --exclude ./.cache ${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.
Finish editing this message first!
Please register or to comment