Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monitoring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
cylab
monitoring
Commits
ac409119
Commit
ac409119
authored
6 years ago
by
Tibo
Browse files
Options
Downloads
Patches
Plain Diff
Add gitleaks
parent
9f91b758
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+30
-21
30 additions, 21 deletions
.gitlab-ci.yml
gitleaks.toml
+4
-0
4 additions, 0 deletions
gitleaks.toml
with
34 additions
and
21 deletions
.gitlab-ci.yml
+
30
−
21
View file @
ac409119
...
...
@@ -8,31 +8,40 @@ cache:
paths
:
-
composer-cache/
before_script
:
# Install git, the php image doesn't have installed
-
apt-get update -yqq
-
apt-get install git -yqq
# Install composer
-
curl -sS https://getcomposer.org/installer | php
# Install PHP-ZIP extension (used by composer)
-
apt-get install -yqq libzip-dev
-
docker-php-ext-install zip
# Install xdebug extension (used for phpunit code coverage)
-
pecl install xdebug
-
docker-php-ext-enable xdebug
-
pecl install mongodb-1.4.4
-
docker-php-ext-enable mongodb
# Install all project dependencies
-
cd web
-
COMPOSER_CACHE_DIR=../composer-cache php ../composer.phar install
# setup Laravel
-
cp env.test .env
-
touch storage/app/db.sqlite
-
php artisan migrate
.phptest
:
before_script
:
# Install git, the php image doesn't have installed
-
apt-get update -yqq
-
apt-get install git -yqq
# Install composer
-
curl -sS https://getcomposer.org/installer | php
# Install PHP-ZIP extension (used by composer)
-
apt-get install -yqq libzip-dev
-
docker-php-ext-install zip
# Install xdebug extension (used for phpunit code coverage)
-
pecl install xdebug
-
docker-php-ext-enable xdebug
-
pecl install mongodb-1.4.4
-
docker-php-ext-enable mongodb
# Install all project dependencies
-
cd web
-
COMPOSER_CACHE_DIR=../composer-cache php ../composer.phar install
# setup Laravel
-
cp env.test .env
-
touch storage/app/db.sqlite
-
php artisan migrate
# Test with PHP7.2
test:php72
:
extends
:
.phptest
image
:
php:7.2
script
:
-
vendor/bin/phpunit --coverage-text
test:gitleaks
:
image
:
name
:
"
zricethezav/gitleaks"
entrypoint
:
[
"
"
]
script
:
-
gitleaks -v --repo-path=./ --config=gitleaks.toml
This diff is collapsed.
Click to expand it.
gitleaks.toml
0 → 100644
+
4
−
0
View file @
ac409119
# the leaks in these commits have been fixed...
[whitelist]
commits
=
[
]
This diff is collapsed.
Click to expand it.
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