pipedawg 1.0.0 → 1.0.1

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: 9962c4432a04670a43c15dbb1e22c62807b921e1cbe4a83de50b53e014603fc5
4
- data.tar.gz: 91e25ca901474b36886cc88b3ebd6a0c152c47521124d05025f33ce85ea5d83b
3
+ metadata.gz: 881d25335110dc811ee1570b6c3e909cee4bbf7e8209010d0287a159ee27d254
4
+ data.tar.gz: 0a1b664c0c074832b38a9ffb4700af77145ca1f102ca505d58eff2f558c24ca7
5
5
  SHA512:
6
- metadata.gz: 672ff4caa57036582d2d5cda45876064cb126794e2e31c380a8042bf5e69de086a2b643f363958cd754230712bc283ab74850c39b6351a78e181ba468f478d97
7
- data.tar.gz: 3bf61de4b736048a34b089861fa341bce57896e52a947f545576e6157827f8311800ee2a154e29b46ab58e1c2bc01f6ae43bc950204b6b6628017d40404760c5
6
+ metadata.gz: b5c2156cfe2a3e73c31a974fc7bcc51144f28d1ba0a9ffef134d585dfd2663071682f84254f908e4df86b09e8ca8ae06a6bd422ebe4619ee554722a5eff72af4
7
+ data.tar.gz: 73058b94b1c44615aa5c5ede80dd010013021a7eab68b653019975464ed9b84b445f625897b4e08ee6982a0a537fee687171941316d5e8749117a767dc954116
@@ -8,7 +8,7 @@ module Pipedawg
8
8
  def initialize(name, opts = {}) # rubocop:disable Metrics/MethodLength
9
9
  opts = {
10
10
  build_args: {},
11
- config: { '$CI_REGISTRY': { username: '$CI_REGISTRY_USER', password: '$CI_REGISTRY_PASSWORD' } },
11
+ config: { auths: { '$CI_REGISTRY': { username: '$CI_REGISTRY_USER', password: '$CI_REGISTRY_PASSWORD' } } },
12
12
  config_file: '/kaniko/.docker/config.json', context: '${CI_PROJECT_DIR}',
13
13
  destinations: ['${CI_REGISTRY_IMAGE}:latest'], dockerfile: 'Dockerfile', external_files: {}, flags: [],
14
14
  ignore_paths: [], insecure_registries: [], options: {}, registry_certificates: {}, registry_mirrors: [],
@@ -9,9 +9,9 @@ module Pipedawg
9
9
  opts = {
10
10
  acceptable_risk: '${QUALYS_ACCEPTABLE_IMAGE_RISK}',
11
11
  artifacts: { expire_in: '1 month', paths: ['software.json', 'vulnerabilities.json'], when: 'always' },
12
- config: { '$CI_REGISTRY': { username: '$CI_REGISTRY_USER', password: '$CI_REGISTRY_PASSWORD' } },
13
- gateway: '${QUALYS_GATEWAY}', image: nil, password: '${QUALYS_PASSWORD}', rules: nil,
14
- scan_image: '${QUALYS_IMAGE}', scan_target_prefix: 'qualys_scan_target', tags: nil,
12
+ config: { auths: { '$CI_REGISTRY': { username: '$CI_REGISTRY_USER', password: '$CI_REGISTRY_PASSWORD' } } },
13
+ gateway: '${QUALYS_GATEWAY}', image: nil, password: '${QUALYS_PASSWORD}',
14
+ scan_image: '${QUALYS_IMAGE}', scan_target_prefix: 'qualys_scan_target',
15
15
  user: '${QUALYS_USERNAME}', variables: { GIT_STRATEGY: 'clone' }
16
16
  }.merge(opts)
17
17
  super name, opts
data/lib/pipedawg/job.rb CHANGED
@@ -17,12 +17,13 @@ module Pipedawg
17
17
  rules: nil,
18
18
  script: [],
19
19
  stage: 'build',
20
- tags: []
20
+ tags: [],
21
+ variables: nil
21
22
  }.merge(opts)
22
23
  end
23
24
 
24
25
  def to_hash
25
- keys = %i[artifacts cache image needs retry rules script stage tags]
26
+ keys = %i[artifacts cache image needs retry rules script stage tags variables]
26
27
  { "#{name}": opts.slice(*keys).compact }
27
28
  end
28
29
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pipedawg
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipedawg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - harbottle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Generate GitLab CI pipelines.
14
14
  email: