pipedawg 1.0.0 → 1.0.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/lib/pipedawg/job/kaniko/build.rb +1 -1
- data/lib/pipedawg/job/qualys/scan.rb +3 -3
- data/lib/pipedawg/job.rb +3 -2
- data/lib/pipedawg/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: 881d25335110dc811ee1570b6c3e909cee4bbf7e8209010d0287a159ee27d254
|
|
4
|
+
data.tar.gz: 0a1b664c0c074832b38a9ffb4700af77145ca1f102ca505d58eff2f558c24ca7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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}',
|
|
14
|
-
scan_image: '${QUALYS_IMAGE}', scan_target_prefix: 'qualys_scan_target',
|
|
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
|
|
data/lib/pipedawg/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Generate GitLab CI pipelines.
|
|
14
14
|
email:
|