quayio-scanner 0.3.1 → 0.3.2
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/Gemfile.lock +1 -1
- data/lib/quayio/scanner/image.rb +3 -3
- data/lib/quayio/scanner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15795d58c96f27ce19472584bd56fecdc49f11c833e2521df12ae54544cdaaec
|
|
4
|
+
data.tar.gz: ee7a1307813f90b2631086f55e51f991310329e19a6a12dd22c2badcdf577711
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f1f0cff0ea95d5488a32fa52f4c206f8a3674f324319aaeed46fb8545c76d9bda0caeab5dccefc718e596a35e7054bea8d66a5f4cc601695f015baec335a2f2
|
|
7
|
+
data.tar.gz: 86d43813af9825fe5f6129e25b1547050e53a8fc493bb05b3fa1045c616f9b9085b50728fd3e3d0ef4fbfea92b324054d5d3e32e2b0c2b8c57e529c90b5757a2
|
data/Gemfile.lock
CHANGED
data/lib/quayio/scanner/image.rb
CHANGED
|
@@ -25,7 +25,7 @@ module Quayio
|
|
|
25
25
|
|
|
26
26
|
def quayio?
|
|
27
27
|
# safe guard, do not trust QUAY_IO_REPO_NAME regex match
|
|
28
|
-
name.match
|
|
28
|
+
!name.match(%r{^quay.io\/}).nil?
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def scanned?
|
|
@@ -35,8 +35,8 @@ module Quayio
|
|
|
35
35
|
def vulnerabilities_present?
|
|
36
36
|
!raw_scan['data']['Layer']['Features'].detect do |f|
|
|
37
37
|
f['Vulnerabilities']&.detect do |v|
|
|
38
|
-
RELEVANT_SEVERITIES.include?(v['Severity'])
|
|
39
|
-
|
|
38
|
+
RELEVANT_SEVERITIES.include?(v['Severity']) && \
|
|
39
|
+
!whitelist.include?(v['Name'])
|
|
40
40
|
end
|
|
41
41
|
end.nil?
|
|
42
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quayio-scanner
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Meichsner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docker-api
|