Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
918a99ac
Verified
Commit
918a99ac
authored
Sep 19, 2023
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the scans
parent
754cbbf4
No related branches found
No related tags found
3 merge requests
!231
CI: Remove build for log-service
,
!228
Better error message handling in the frontend
,
!223
Release of version 1.4.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+44
-2
44 additions, 2 deletions
.gitlab-ci.yml
Makefile
+19
-11
19 additions, 11 deletions
Makefile
with
63 additions
and
13 deletions
.gitlab-ci.yml
+
44
−
2
View file @
918a99ac
...
@@ -265,6 +265,46 @@ scan-search-db:
...
@@ -265,6 +265,46 @@ scan-search-db:
reports
:
reports
:
container_scanning
:
./.trivy/trivy-search-db-report.json
container_scanning
:
./.trivy/trivy-search-db-report.json
scan-data-db
:
stage
:
scan-docker
needs
:
-
build-docker
only
:
refs
:
-
dev
-
master
allow_failure
:
true
script
:
-
make scan-data-db
cache
:
paths
:
-
.trivycache/
artifacts
:
when
:
always
expire_in
:
1 days
reports
:
container_scanning
:
./.trivy/trivy-data-db-report.json
scan-metadata-db
:
stage
:
scan-docker
needs
:
-
build-docker
only
:
refs
:
-
dev
-
master
allow_failure
:
true
script
:
-
make scan-metadata-db
cache
:
paths
:
-
.trivycache/
artifacts
:
when
:
always
expire_in
:
1 days
reports
:
container_scanning
:
./.trivy/trivy-metadata-db-report.json
scan-ui
:
scan-ui
:
stage
:
scan-docker
stage
:
scan-docker
needs
:
needs
:
...
@@ -293,7 +333,8 @@ release-latest:
...
@@ -293,7 +333,8 @@ release-latest:
-
scan-broker-service
-
scan-broker-service
-
scan-gateway-service
-
scan-gateway-service
-
scan-metadata-service
-
scan-metadata-service
-
scan-proxy
-
scan-metadata-db
-
scan-data-db
-
scan-search-db
-
scan-search-db
-
scan-ui
-
scan-ui
only
:
only
:
...
@@ -313,7 +354,8 @@ release-version:
...
@@ -313,7 +354,8 @@ release-version:
-
scan-broker-service
-
scan-broker-service
-
scan-gateway-service
-
scan-gateway-service
-
scan-metadata-service
-
scan-metadata-service
-
scan-proxy
-
scan-metadata-db
-
scan-data-db
-
scan-search-db
-
scan-search-db
-
scan-ui
-
scan-ui
only
:
only
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
19
−
11
View file @
918a99ac
...
@@ -2,8 +2,6 @@
...
@@ -2,8 +2,6 @@
TAG
?=
latest
TAG
?=
latest
TRIVY_VERSION
?=
v0.41.0
TRIVY_VERSION
?=
v0.41.0
ELASTIC_VERSION
?=
8.7.1
NGINX_VERSION
?=
1.25.0-alpine-slim
AZURE_REPO
?=
dbrepo.azurecr.io
AZURE_REPO
?=
dbrepo.azurecr.io
all
:
build
all
:
build
...
@@ -108,7 +106,7 @@ test-metadata-service: build-metadata-service teardown
...
@@ -108,7 +106,7 @@ test-metadata-service: build-metadata-service teardown
test-analyse-service
:
build-analyse-service
test-analyse-service
:
build-analyse-service
bash ./dbrepo-analyse-service/test.sh
bash ./dbrepo-analyse-service/test.sh
scan
:
scan-analyse-service scan-authentication-service scan-broker-service scan-gateway-service scan-metadata-db scan-metadata-service scan-search-db scan-ui scan-search-sync-agent scan-data-
service
scan
:
scan-analyse-service scan-authentication-service scan-broker-service scan-gateway-service scan-metadata-db scan-metadata-service scan-search-db scan-ui scan-search-sync-agent scan-data-
db
scan-analyse-service
:
scan-analyse-service
:
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-analyse-service-report.json dbrepo-analyse-service:latest
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-analyse-service-report.json dbrepo-analyse-service:latest
...
@@ -126,10 +124,10 @@ scan-broker-service:
...
@@ -126,10 +124,10 @@ scan-broker-service:
trivy image
--insecure
--exit-code
1
--severity
CRITICAL dbrepo-broker-service:latest
trivy image
--insecure
--exit-code
1
--severity
CRITICAL dbrepo-broker-service:latest
scan-gateway-service
:
scan-gateway-service
:
docker pull
"nginx:
${
NGINX_VERSION
}
"
docker pull
"nginx:
1.25.0-alpine-slim
"
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-gateway-service-report.json
"nginx:
${
NGINX_VERSION
}
"
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-gateway-service-report.json
"nginx:
1.25.0-alpine-slim
"
trivy image
--insecure
--exit-code
0
"nginx:
${
NGINX_VERSION
}
"
trivy image
--insecure
--exit-code
0
"nginx:
1.25.0-alpine-slim
"
trivy image
--insecure
--exit-code
1
--severity
CRITICAL
"nginx:
${
NGINX_VERSION
}
"
trivy image
--insecure
--exit-code
1
--severity
CRITICAL
"nginx:
1.25.0-alpine-slim
"
scan-metadata-db
:
scan-metadata-db
:
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-metadata-db-report.json dbrepo-metadata-db:latest
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-metadata-db-report.json dbrepo-metadata-db:latest
...
@@ -147,10 +145,20 @@ scan-search-sync-agent:
...
@@ -147,10 +145,20 @@ scan-search-sync-agent:
trivy image
--insecure
--exit-code
1
--severity
CRITICAL dbrepo-search-sync-agent:latest
trivy image
--insecure
--exit-code
1
--severity
CRITICAL dbrepo-search-sync-agent:latest
scan-search-db
:
scan-search-db
:
docker pull
"elasticsearch:
${
ELASTIC_VERSION
}
"
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-search-db-report.json
"dbrepo-search-db"
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-search-db-report.json
"elasticsearch:
${
ELASTIC_VERSION
}
"
trivy image
--insecure
--exit-code
0
"dbrepo-search-db"
trivy image
--insecure
--exit-code
0
"elasticsearch:
${
ELASTIC_VERSION
}
"
trivy image
--insecure
--exit-code
1
--severity
CRITICAL
"dbrepo-search-db"
trivy image
--insecure
--exit-code
1
--severity
CRITICAL
"elasticsearch:
${
ELASTIC_VERSION
}
"
scan-metadata-db
:
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-search-db-report.json
"dbrepo-metadata-db"
trivy image
--insecure
--exit-code
0
"dbrepo-metadata-db"
trivy image
--insecure
--exit-code
1
--severity
CRITICAL
"dbrepo-metadata-db"
scan-data-db
:
docker pull
"bitnami/mariadb:10.5"
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-search-db-report.json
"bitnami/mariadb:10.5"
trivy image
--insecure
--exit-code
0
"bitnami/mariadb:10.5"
trivy image
--insecure
--exit-code
1
--severity
CRITICAL
"bitnami/mariadb:10.5"
scan-ui
:
scan-ui
:
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-ui-report.json dbrepo-ui:latest
trivy image
--insecure
--exit-code
0
--format
template
--template
"@.trivy/gitlab.tpl"
-o
./.trivy/trivy-ui-report.json dbrepo-ui:latest
...
...
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