fluent-plugin-jfrog-siem 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cfb13538b236dbfd917cf58038dab5e76d945fa0af419240fdd5508e976af1c
4
- data.tar.gz: 9725242bcb3230a23f457b146bcf5e39cf562aad9abbcfbcc1ea390de2853093
3
+ metadata.gz: a804fe365772166ab8b36207d11e1ffc4b858c3e47a5792240e5d6e1567108bd
4
+ data.tar.gz: f0bc602534f2c109469688fe38b79d78fecc1eb3ed31e9e0b40874cbea0935e4
5
5
  SHA512:
6
- metadata.gz: e63137fd91a16f2ab65d3ecdc2e841d1c098e201a8a47b2d0687a80833e05bfa3fb0e4e6cf606245d58c884ef3740d7c4efa3fbbb9a4c095445e05ba3ee60b10
7
- data.tar.gz: cc5dcb1ef463eb4d8c57bd246d4968b3a47639296f994913ebb75f01bb49496a44800197efe7bcc97e23bff0f84dc48570ba08d9157c0690715e00b9a0e5cfb5
6
+ metadata.gz: 39082ce3738d65195ce5c85f7670e7883fc003b9bd853ef9dbb74f4e74f9c2b9a9750a83b90bcc9bb9264a921c06a2548f9bd599794bb4504e78201accbf733c
7
+ data.tar.gz: 05dfcd3fe9e49d94e824f9265cf4b6a301911529520e479d36889328872e92943f876b2bfacc2a25203c6c8de3e0f93e3f7427b5a684687c4ed427c59d6bf5c0
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-jfrog-siem"
6
- spec.version = "0.1.5"
6
+ spec.version = "0.1.6"
7
7
  spec.authors = ["John Peterson", "Mahitha Byreddy"]
8
8
  spec.email = ["johnp@jfrog.com", "mahithab@jfrog.com"]
9
9
 
@@ -271,15 +271,8 @@ module Fluent
271
271
 
272
272
  impacted_artifacts = detailResp_json['impacted_artifacts']
273
273
  for impacted_artifact in impacted_artifacts do
274
- if impacted_artifact.split('/', -1)[-1] == "manifest.json"
275
- #docker formatting
276
- repo_name = impacted_artifact.split('/', -1)[1]
277
- image_name = impacted_artifact.split('/', -1)[2]
278
- tag_name = impacted_artifact.split('/', -1)[3]
279
- impacted_artifact_url = "/api/docker/" + repo_name + "/v2/" + image_name + "/manifests/" + tag_name
280
- else
281
- impacted_artifact_url = impacted_artifact.gsub("default", "")
282
- end
274
+ matchdata = impacted_artifact.match /default\/(?<repo_name>[^\/]*)\/(?<path>.*)/
275
+ impacted_artifact_url = matchdata['repo_name'] + ":" + matchdata['path'] + " "
283
276
  impacted_artifact_url_list.append(impacted_artifact_url)
284
277
  end
285
278
  detailResp_json['impacted_artifacts_url'] = impacted_artifact_url_list
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-jfrog-siem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Peterson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-29 00:00:00.000000000 Z
12
+ date: 2021-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler