Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Python
Commits
d62f2a2d
Commit
d62f2a2d
authored
1 year ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
fix(bandit): exclude .cache/ dir
closes #58
parent
b4d95fb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-python.yml
+3
-3
3 additions, 3 deletions
templates/gitlab-ci-python.yml
with
3 additions
and
3 deletions
templates/gitlab-ci-python.yml
+
3
−
3
View file @
d62f2a2d
...
...
@@ -976,15 +976,15 @@ py-bandit:
-
|
if [[ "$SONAR_HOST_URL" ]]
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
# JSON (for DefectDojo)
-
|
if [[ "$DEFECTDOJO_BANDIT_REPORTS" ]]
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
-
_run bandit ${TRACE+--verbose} ${BANDIT_ARGS}
-
_run bandit ${TRACE+--verbose}
--exclude ./.cache
${BANDIT_ARGS}
artifacts
:
when
:
always
name
:
"
$CI_JOB_NAME
artifacts
from
$CI_PROJECT_NAME
on
$CI_COMMIT_REF_SLUG"
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
b7eed029
·
10 months ago
mentioned in commit
b7eed029
mentioned in commit b7eed02980be21b3670933681654c74e8a05e218
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment