Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
include:
- template: Jobs/SAST.gitlab-ci.yml
- template: Jobs/Secret-Detection.gitlab-ci.yml
- template: Jobs/Dependency-Scanning.gitlab-ci.yml
- template: Jobs/Container-Scanning.gitlab-ci.yml

image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/docker:latest
services:
- docker:dind

stages:
- sandbox-build-migration
- prod-build
- test
- docker-build
- scan
- docker-build-release
- deploy-sandbox-migration
- deploy-production
Expand Down Expand Up @@ -64,6 +72,15 @@ docker-build:
except:
- tags

container_scanning:
stage: scan
needs: ["docker-build"]
variables:
CS_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
CS_REGISTRY_USER: $DOCKER_HUB_USER
CS_REGISTRY_PASSWORD: $DOCKER_HUB_PASSWORD
GIT_STRATEGY: fetch

docker-build-release:
variables:
GIT_STRATEGY: none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class EfoTraitsComponent implements OnInit, AfterViewInit {
this.isLoadingCreate = false;
this.dialogRef.close();
if (resp.trait !== efoTrait.trait) {
this.snackBar.open('Trait created. Sanitized: ' + efoTrait.trait + ' -> ' + resp.trait, '', {duration: 5000});
this.snackBar.open('Trait created. Sanitized: ' + efoTrait.trait + ' -> ' + resp.trait, '', {duration: 5000, panelClass: 'warning-snackbar'});
}
else {
this.snackBar.open('Trait created.', '', {duration: 2500});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class ReportedTraitComponent implements OnInit, AfterViewInit {
this.isLoadingCreate = false;
this.dialogRef.close();
if (this.createTraitName !== reportedTrait.trait) {
this.snackBar.open('Trait created. Sanitized: ' + this.createTraitName + ' -> ' + reportedTrait.trait, '', {duration: 5000});
this.snackBar.open('Trait created. Sanitized: ' + this.createTraitName + ' -> ' + reportedTrait.trait, '', {duration: 5000, panelClass: 'warning-snackbar'});
}
else {
this.snackBar.open('Trait created.', '', {duration: 2500});
Expand Down
5 changes: 5 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -458,3 +458,8 @@ a.menu-btn {
background: #f44336;
color: white;
}

.warning-snackbar {
background: darkorange;
color: white;
}