gitlab-exporter 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +23 -11
- data/Gemfile.lock +1 -1
- data/lib/gitlab_exporter/database/row_count.rb +9 -3
- data/lib/gitlab_exporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ef9540e75d17cc9904aa53962399870425e6ca52d57ed994dff10d53fad201f
|
|
4
|
+
data.tar.gz: 7ab18ebbb09faaac5c4924cab93af2059dbe28e4177365771c897a153878daee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05a779426c541c1371d880b9b2d4a321b78243b4bb89ce8c8a4d41e977569f88386505e205719079b0ea85a1bbc3f9d5558bdbb6e1de94de4eb283c05513ad16
|
|
7
|
+
data.tar.gz: 39fa8909ce99c35bc0e929760cf820593b3ee30526fdb4d10f3230646f63f271b4b3b8e29cc62fbde59106d5f4563335c184f18de21fe8fe5246f7b722ed0b0e
|
data/.gitlab-ci.yml
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
|
+
include:
|
|
2
|
+
- template: Security/DAST.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Security/DAST.gitlab-ci.yml
|
|
3
|
+
- template: Security/Container-Scanning.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Security/Container-Scanning.gitlab-ci.yml
|
|
4
|
+
- template: Security/Dependency-Scanning.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Security/Dependency-Scanning.gitlab-ci.yml
|
|
5
|
+
- template: Security/License-Scanning.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Security/License-Scanning.gitlab-ci.yml
|
|
6
|
+
- template: Security/SAST.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Security/SAST.gitlab-ci.yml
|
|
7
|
+
- template: Security/Secret-Detection.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/ci/templates/Security/Secret-Detection.gitlab-ci.yml
|
|
8
|
+
|
|
1
9
|
default:
|
|
2
10
|
image: "ruby:2.3"
|
|
3
|
-
before_script:
|
|
4
|
-
- git config --global user.email "bot@gitlab.com"
|
|
5
|
-
- git config --global user.name "Bot User"
|
|
6
|
-
- bundle install -j $(nproc) --path vendor
|
|
7
11
|
cache:
|
|
8
12
|
paths:
|
|
9
13
|
- vendor
|
|
10
14
|
tags:
|
|
11
15
|
- gitlab-org
|
|
12
16
|
|
|
17
|
+
.before_scripts: &before_scripts
|
|
18
|
+
- git config --global user.email "bot@gitlab.com"
|
|
19
|
+
- git config --global user.name "Bot User"
|
|
20
|
+
- bundle install -j $(nproc) --path vendor
|
|
21
|
+
|
|
13
22
|
workflow:
|
|
14
|
-
rules:
|
|
23
|
+
rules: &workflow_rules
|
|
15
24
|
# For merge requests, create a pipeline.
|
|
16
25
|
- if: '$CI_MERGE_REQUEST_IID'
|
|
17
26
|
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
|
|
@@ -22,15 +31,18 @@ workflow:
|
|
|
22
31
|
rspec:
|
|
23
32
|
script:
|
|
24
33
|
- bundle exec rspec spec -f d -c
|
|
34
|
+
before_script: *before_scripts
|
|
25
35
|
|
|
26
36
|
rubocop:
|
|
27
37
|
script:
|
|
28
38
|
- bundle exec rubocop
|
|
39
|
+
before_script: *before_scripts
|
|
29
40
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- template: Security/SAST.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab-foss/blob/master/lib/gitlab/ci/templates/Security/SAST.gitlab-ci.yml
|
|
41
|
+
license_scanning:
|
|
42
|
+
rules: *workflow_rules
|
|
43
|
+
|
|
44
|
+
gemnasium-dependency_scanning:
|
|
45
|
+
rules: *workflow_rules
|
|
36
46
|
|
|
47
|
+
secret_detection:
|
|
48
|
+
rules: *workflow_rules
|
data/Gemfile.lock
CHANGED
|
@@ -175,6 +175,14 @@ module GitLab
|
|
|
175
175
|
|
|
176
176
|
def execute(query)
|
|
177
177
|
with_connection_pool do |conn|
|
|
178
|
+
conn.exec(query).map_types!(type_map_for_results(conn))
|
|
179
|
+
end
|
|
180
|
+
rescue PG::UndefinedTable, PG::UndefinedColumn
|
|
181
|
+
nil
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def type_map_for_results(conn)
|
|
185
|
+
@type_map_for_results ||= begin
|
|
178
186
|
tm = PG::BasicTypeMapForResults.new(conn)
|
|
179
187
|
|
|
180
188
|
# Remove warning message:
|
|
@@ -187,10 +195,8 @@ module GitLab
|
|
|
187
195
|
tm.add_coder(old_coder.dup.tap { |c| c.oid = value[:oid] })
|
|
188
196
|
end
|
|
189
197
|
|
|
190
|
-
|
|
198
|
+
tm
|
|
191
199
|
end
|
|
192
|
-
rescue PG::UndefinedTable, PG::UndefinedColumn
|
|
193
|
-
nil
|
|
194
200
|
end
|
|
195
201
|
|
|
196
202
|
# Not private so I can test it without meta programming tricks
|