cirro-ruby-client 2.7.1 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4df676a10d42219e5d81847cc842521cb21c42da22816fec3cca8ad79759691a
4
- data.tar.gz: 8b8197f8755d8f7211d2f3ae686c32619500a7a56511448c0f9a2e79a1c89b2f
3
+ metadata.gz: ad94f96a0c6b27390e0d791a849d95a0474f0ec55638eaced19a2840604fb4d3
4
+ data.tar.gz: f32d05da2b682ca91fde812166f765b880721fe7520351606a5cb6b078a74f52
5
5
  SHA512:
6
- metadata.gz: 05fd1c6d9037854059ed42a5f29d8da008602462eaade583164fdfd2350185e0862e51230d52a30ab6aac2e900469023d75adc773fdafd0630265fd1e1ed88b2
7
- data.tar.gz: b83835c328574a4c59225383cc485e57cc7a7f3bb71eae206e75460c140e49dba7388aadd96f18d7193781a0ee0e5e04e0c4926cb05b6af6dd4cfc91946f0165
6
+ metadata.gz: 73b714205d1c41ec7832faba85f38bee55ce1228e90d15f9f00f15101f389b7fe0427bcbe63f7025bf2d3e956818832320880244b1f449e4bc2c52f8855faa4f
7
+ data.tar.gz: bb9474503d17100fa75f6176db9b353159e808817fb5ec10c76f841b4a1613769743a64150353b5a208daf9d8f8f59ab4b562fab0202f3d984821fa04edf8801
data/.circleci/config.yml CHANGED
@@ -1,21 +1,19 @@
1
1
  version: 2.1
2
- infra_container: &infra_container
3
- us.gcr.io/oi-tset/swissknife@sha256:e8b74aab06de688b29c600785782a614efdaf2c20df7ef9b53b2b0276815fb0c
4
2
 
5
- # Configure authentication in private registry
6
- infra_container_registry_auth:
7
- &infra_container_registry_auth
8
- auth:
9
- username: _json_key # default username when using a JSON key file to authenticate
10
- password: $GOOGLE_JSON_KEY_OI_TSET
3
+ executors:
4
+ cci-ruby:
5
+ docker:
6
+ - image: cimg/ruby:3.2.2
7
+ environment:
8
+ RAILS_ENV: test
9
+ RACK_ENV: test
10
+ cci-base:
11
+ docker:
12
+ - image: cimg/base:stable
11
13
 
12
14
  jobs:
13
15
  test:
14
- docker:
15
- - image: cimg/ruby:3.2.2-node
16
- environment:
17
- - RAILS_ENV=test
18
- - RACK_ENV=test
16
+ executor: cci-ruby
19
17
  steps:
20
18
  - checkout
21
19
  - restore_cache:
@@ -36,8 +34,7 @@ jobs:
36
34
  command: bundle exec rubocop
37
35
 
38
36
  deploy:
39
- docker:
40
- - image: cimg/ruby:3.2.2-node
37
+ executor: cci-ruby
41
38
  steps:
42
39
  - checkout
43
40
  - run:
@@ -53,47 +50,44 @@ jobs:
53
50
  git push origin v"$version"
54
51
  fi
55
52
  - run:
56
- name: build gem
53
+ name: Build the gem
57
54
  command: gem build cirro-ruby-client.gemspec
58
55
  - run:
59
- name: push to rubygems
56
+ name: Push to Rubygems
60
57
  command: |
61
58
  version=$(cat lib/cirro_io/client/version.rb | grep VERSION | awk -F' = ' '{print $2}' | xargs)
62
- echo "gem `gem --version`"
59
+ echo "gem $(gem --version)"
63
60
  mkdir ~/.gem
64
- cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/${RUBYGEMS_API_KEY}/" > ~/.gem/credentials
61
+ cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/$RUBYGEMS_API_KEY/" > ~/.gem/credentials
65
62
  chmod 0600 ~/.gem/credentials
66
63
  gem push cirro-ruby-client-$version.gem
67
- shred -u ~/.gem/credentials
64
+ shred -u ~/.gem/credentials # completely remove the file making it hard for even very expensive hardware to recover the data
68
65
 
69
66
  defectdojo:
70
- docker:
71
- - image: *infra_container
72
- <<: *infra_container_registry_auth
67
+ executor: cci-base
73
68
  environment:
74
- - DEFECTDOJO_URL: defectdojo.testcloud.io
75
- - DEFECTDOJO_PRODUCT: Cirro Ruby Client
76
- - DEFECTDOJO_ENG_NAME: CircleCI Scan
69
+ DEFECTDOJO_URL: defectdojo.testcloud.io
70
+ DEFECTDOJO_PRODUCT: Cirro Ruby Client
71
+ DEFECTDOJO_ENG_NAME: CircleCI Scan
72
+ circleci_ip_ranges: true # opts the job into the IP ranges feature
77
73
  steps:
78
74
  - checkout
79
75
  - run:
80
- name: Setup access to GCP
76
+ name: Install Trivy and Gitleaks
81
77
  command: |
82
- echo $GOOGLE_JSON_KEY_OI_TSET > ${HOME}/gcloud-service-key.json && \
83
- gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json
84
- gcloud auth configure-docker
78
+ curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin
79
+ curl -sfL https://github.com/zricethezav/gitleaks/releases/download/v8.18.2/gitleaks_8.18.2_linux_x64.tar.gz -o gitleaks.tar.gz && \
80
+ tar -xf gitleaks.tar.gz
85
81
  - run:
86
82
  name: Scans
87
83
  command: |
88
- unset GITHUB_TOKEN && trivy fs --exit-code 0 --no-progress --ignorefile .trivyignore-fake --format json --output filesystem-scan.json .
89
- gitleaks detect --no-git --exit-code 0 --report-format json --report-path gitleaks.json
84
+ trivy fs --exit-code 0 --no-progress --format json --output filesystem-scan.json .
85
+ ./gitleaks detect --no-git --exit-code 0 --report-format json --report-path gitleaks.json
90
86
  - run:
91
87
  name: Send data to DefectDojo
92
88
  command: |
93
- export DEFECTDOJO_TOKEN=$(gcloud secrets versions access latest \
94
- --secret="defectdojo_token" \
95
- --project=oi-tset \
96
- --quiet)
89
+ # The DEFECTDOJO_TOKEN env var is set in CCI to not have to be authenticated
90
+ # to GCP only for this purpose, so please change it there if it gets rotated
97
91
 
98
92
  # Send Trivy filesystem scan
99
93
  curl --fail --request POST https://$DEFECTDOJO_URL/api/v2/reimport-scan/ \
@@ -124,7 +118,6 @@ jobs:
124
118
  --form "file=@gitleaks.json"
125
119
 
126
120
  workflows:
127
- version: 2
128
121
  deploy_the_gem:
129
122
  jobs:
130
123
  - test
@@ -133,10 +126,8 @@ workflows:
133
126
  - test
134
127
  filters:
135
128
  branches:
136
- only:
137
- - master
129
+ only: master
138
130
  - defectdojo:
139
131
  filters:
140
132
  branches:
141
- only:
142
- - master
133
+ only: master
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.7.1)
4
+ cirro-ruby-client (2.7.2)
5
5
  activesupport
6
6
  faraday (< 1.11.0)
7
7
  faraday_middleware
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.7.1'
4
+ VERSION = '2.7.2'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirro-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirro Dev Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-13 00:00:00.000000000 Z
11
+ date: 2025-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport