license_finder 5.11.1 → 6.0.0

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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/CHANGELOG.md +25 -0
  4. data/CONTRIBUTING.md +1 -1
  5. data/Dockerfile +9 -14
  6. data/LICENSE +1 -1
  7. data/README.md +18 -18
  8. data/Rakefile +1 -1
  9. data/VERSION +1 -1
  10. data/bin/license_finder_pip.py +6 -2
  11. data/ci/pipelines/pull-request.yml.erb +14 -0
  12. data/ci/pipelines/release.yml.erb +24 -0
  13. data/lib/license_finder/cli.rb +2 -2
  14. data/lib/license_finder/cli/approvals.rb +1 -0
  15. data/lib/license_finder/cli/dependencies.rb +3 -2
  16. data/lib/license_finder/cli/main.rb +8 -8
  17. data/lib/license_finder/cli/makes_decisions.rb +3 -0
  18. data/lib/license_finder/cli/permitted_licenses.rb +32 -0
  19. data/lib/license_finder/cli/restricted_licenses.rb +32 -0
  20. data/lib/license_finder/core.rb +1 -1
  21. data/lib/license_finder/decision_applier.rb +6 -6
  22. data/lib/license_finder/decisions.rb +19 -19
  23. data/lib/license_finder/license_aggregator.rb +2 -2
  24. data/lib/license_finder/package.rb +15 -15
  25. data/lib/license_finder/package_manager.rb +1 -0
  26. data/lib/license_finder/package_managers/bundler.rb +3 -1
  27. data/lib/license_finder/package_managers/composer.rb +1 -1
  28. data/lib/license_finder/package_managers/pip.rb +11 -19
  29. data/lib/license_finder/package_managers/pipenv.rb +63 -0
  30. data/lib/license_finder/package_utils/pypi.rb +41 -0
  31. data/lib/license_finder/packages/merged_package.rb +2 -2
  32. data/lib/license_finder/reports/templates/html_report.erb +2 -2
  33. data/lib/license_finder/reports/templates/markdown_report.erb +2 -2
  34. data/lib/license_finder/scanner.rb +4 -2
  35. data/lib/license_finder/shared_helpers/common_path.rb +3 -1
  36. data/license_finder.gemspec +5 -6
  37. metadata +15 -14
  38. data/lib/license_finder/cli/blacklist.rb +0 -32
  39. data/lib/license_finder/cli/whitelist.rb +0 -32
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 229ff47f8f3f1ff07709af3ef3ada8de6ab922721a2cb776edd2bc06536e0541
4
- data.tar.gz: e2cc27c79ec7d0b2f26d088ef52f72508ffe62993dd02fe37ab0c0ef21767cc0
3
+ metadata.gz: f844205631f75e79fa841f51845a3a93691016c21fc0e3abbeb971ea8b8c4108
4
+ data.tar.gz: 2844a248508124b47ad59556878101b1ee793be082da8af1281bdb69e8478e2e
5
5
  SHA512:
6
- metadata.gz: a686bb665dcbe6fb7d5381da2e93f510a9818ef3e17794a7a4b8342ef0d576c3f0225487c5222e529d81c1f3e37eeb44dbc2ebf0fbe0269a9fd7538ae6f71cb3
7
- data.tar.gz: 6d705dd6c77f0a5289aa38cb218d4cd4b4c2854dcd336ec142272c190a6f33fad30cb53391750876ea89ae9d117959234b80791c9f6cab8696ca066d8ee365da
6
+ metadata.gz: 4621032a4fdb55cb82c81733fca9d7dbee7d900013e1d74dbf633a6be189892121b2afe975ce93f6c465ba5697de11b7b5ad6a40420bd365083db17c587a4ed5
7
+ data.tar.gz: c13feb27fdd90a93abc444e0ed7ae08292ac742944e9de35f77b4f838cc2d705ee2c203e0743a0d805f7e070ea19e7cfe8cbea4b02b2d627cfe6ef5cedbcbfc1
@@ -9,7 +9,7 @@ AllCops:
9
9
  - 'Gemfile'
10
10
 
11
11
  #Layout Cops
12
- IndentHeredoc:
12
+ HeredocIndentation:
13
13
  Enabled: false
14
14
  EmptyLinesAroundArguments:
15
15
  Enabled: false
@@ -1,3 +1,27 @@
1
+ # [6.0.0] / 2020-01-22
2
+
3
+ ### Added
4
+ * License Finder now recognizes pip requirement markers - [99fbc184](https://github.com/pivotal/LicenseFinder/commit/99fbc18463ef45f920ad506a72dc0b3a93d0f5bf) - Jason Smith
5
+
6
+ ### Fixed
7
+ * Bundler ignored groups failure - [bf2c03e3](https://github.com/pivotal/LicenseFinder/commit/bf2c03e375e91e8418967a593362313487f2f0d0)
8
+ * No longer crashes when python package requirement is missing - [80e4b360](https://github.com/pivotal/LicenseFinder/commit/80e4b360b95de126e7dc139c25de56c948a01f1e) - Jason Smith
9
+
10
+ * Longest common paths returning incorrect single directory [#169276334] - [f1d5423b](https://github.com/pivotal/LicenseFinder/commit/f1d5423b04f892d1d1e0595993c9bebb0a7c1b6d)
11
+ * python 2 projects using incorrect CLI command - [5655f60e](https://github.com/pivotal/LicenseFinder/commit/5655f60e671dc4c247bb05138ed35b05cda9cdc7)
12
+
13
+ ### Changed
14
+ * Bump jdk version to 13 - [74c9aca6](https://github.com/pivotal/LicenseFinder/commit/74c9aca6358c9dd9262790edbba2e42e84b58bd9) - Debbie Chen
15
+ * Bump sbt version to 1.3.3 with java 12 - [d825599a](https://github.com/pivotal/LicenseFinder/commit/d825599a9b1ac12d874eda66c17bc877bb9af555) - Debbie Chen
16
+ * Bump to openjdk 11 - [499f8ab3](https://github.com/pivotal/LicenseFinder/commit/499f8ab3af7cd8ca37e429f2ed78323ad796d123) - Debbie Chen
17
+ * Bump to openjdk 12 - [09c781a7](https://github.com/pivotal/LicenseFinder/commit/09c781a70787d9461722d5d03d1bc624b644311a) - Debbie Chen
18
+ * Bundler prepare commands with now exclude dependencies in the ignored groups [#169611326] - [e58b2870](https://github.com/pivotal/LicenseFinder/commit/e58b2870b64d2c88be7027b152a423fdb921baca)
19
+
20
+ * Change version to be required for dependency add and updated cli options [#168705017] - [b10383d3](https://github.com/pivotal/LicenseFinder/commit/b10383d3d1990b6ad0d608044511352f13924be3) - Debbie Chen
21
+
22
+ ### Deprecated
23
+ * Remove support for jruby 9.1* [#169590215] - [81e75f8c](https://github.com/pivotal/LicenseFinder/commit/81e75f8cd61ca35e30562352dee2579b1b6c991e)
24
+
1
25
  # [5.11.1] / 2019-11-05
2
26
 
3
27
  ### Fixed
@@ -772,3 +796,4 @@ Bugfixes:
772
796
  [5.10.2]: https://github.com/pivotal/LicenseFinder/compare/v5.10.1...v5.10.2
773
797
  [5.11.0]: https://github.com/pivotal/LicenseFinder/compare/v5.10.2...v5.11.0
774
798
  [5.11.1]: https://github.com/pivotal/LicenseFinder/compare/v5.11.0...v5.11.1
799
+ [6.0.0]: https://github.com/pivotal/LicenseFinder/compare/v5.11.1...v6.0.0
@@ -6,7 +6,7 @@
6
6
  * Create a feature branch.
7
7
  * Make your feature addition or bug fix. Please make sure there is appropriate test coverage.
8
8
  * Rebase on top of master.
9
- * Send a pull request.
9
+ * Send a pull request with commit messages tagged with an entry specified here: https://keepachangelog.com/en/1.0.0/.
10
10
 
11
11
  ## Running Tests
12
12
 
data/Dockerfile CHANGED
@@ -5,11 +5,10 @@ ENV PIP_INSTALL_VERSION 19.0.2
5
5
  ENV PIP3_INSTALL_VERSION 8.1.1
6
6
  ENV GO_LANG_VERSION 1.11.5
7
7
  ENV MAVEN_VERSION 3.6.0
8
- ENV SBT_VERSION 1.1.1
8
+ ENV SBT_VERSION 1.3.3
9
9
  ENV GRADLE_VERSION 5.6.4
10
10
  ENV RUBY_VERSION 2.6.5
11
11
  ENV MIX_VERSION 1.0
12
- ENV JDK_VERISON 8u211
13
12
  ENV COMPOSER_ALLOW_SUPERUSER 1
14
13
 
15
14
  # programs needed for building
@@ -39,16 +38,12 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
39
38
  RUN npm install -g bower && \
40
39
  echo '{ "allow_root": true }' > /root/.bowerrc
41
40
 
42
- #install java 8
43
- #http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04
44
- RUN apt-get install -y openjdk-8-jdk
45
- RUN JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
46
-
47
- ENV J2SDKDIR=/usr/lib/jvm/java-8-openjdk-amd64
48
- ENV J2REDIR=/usr/lib/jvm/java-8-openjdk-amd64/jre
49
- ENV PATH=$PATH:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64/jre/bin
50
- ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
51
-
41
+ # install jdk 11
42
+ RUN curl -L -o openjdk12.tar.gz https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz && \
43
+ tar xvf openjdk12.tar.gz && \
44
+ sudo mv jdk-12.0.2 /opt/
45
+ ENV JAVA_HOME=/opt/jdk-12.0.2
46
+ ENV PATH=$PATH:$JAVA_HOME/bin
52
47
  RUN java -version
53
48
 
54
49
  # install python and rebar
@@ -78,7 +73,7 @@ RUN mkdir -p /usr/local/share/sbt-launcher-packaging && \
78
73
 
79
74
  # install gradle
80
75
  WORKDIR /tmp
81
- RUN curl -L -o gradle.zip http://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
76
+ RUN curl -L -o gradle.zip https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
82
77
  unzip -q gradle.zip && \
83
78
  rm gradle.zip && \
84
79
  mv gradle-$GRADLE_VERSION /root/gradle
@@ -154,7 +149,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4F4EA0AAE5
154
149
  apt-get update &&\
155
150
  apt-get install -y php7.1-cli &&\
156
151
  php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&\
157
- php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&\
152
+ php -r "if (hash_file('sha384', 'composer-setup.php') === 'c5b9b6d368201a9db6f74e2611495f369991b72d9c8cbd3ffbc63edff210eb73d46ffbfce88669ad33695ef77dc76976') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" &&\
158
153
  php composer-setup.php &&\
159
154
  php -r "unlink('composer-setup.php');" &&\
160
155
  mv composer.phar /usr/bin/composer
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2012-2017 Pivotal Software, Inc. All Rights Reserved.
3
+ Copyright (c) 2012-2020 Pivotal Software, Inc. All Rights Reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -4,17 +4,17 @@
4
4
 
5
5
  Build status
6
6
  * Ruby 2.3.8 [![Ruby 2.3.8 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.3.8/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
7
- * Ruby 2.4.5 [![Ruby 2.4.5 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.4.5/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
8
- * Ruby 2.5.3 [![Ruby 2.5.3 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.5.3/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
7
+ * Ruby 2.4.9 [![Ruby 2.4.9 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.4.9/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
8
+ * Ruby 2.5.7 [![Ruby 2.5.7 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.5.7/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
9
9
  * Ruby 2.6.5 [![Ruby 2.6.5 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.6.5/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
10
- * JRuby 9.1.17.0 [![JRuby 9.1.17.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-jruby-9.1.17.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
11
- * JRuby 9.2.6.0 [![JRuby 9.2.6.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-jruby-9.2.6.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
10
+ * Ruby 2.7.0 [![Ruby 2.7.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-2.7.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
11
+ * JRuby 9.2.9.0 [![JRuby 9.2.9.0 build status](https://norsk.cf-app.com/api/v1/teams/main/pipelines/LicenseFinder/jobs/ruby-jruby-9.2.9.0/badge)](https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder)
12
12
 
13
13
 
14
14
  LicenseFinder works with your package managers to find dependencies,
15
15
  detect the licenses of the packages in them, compare those licenses
16
- against a user-defined whitelist, and give you an actionable exception
17
- report.
16
+ against a user-defined list of permitted licenses,
17
+ and give you an actionable exception report.
18
18
 
19
19
  * code: https://github.com/pivotal/LicenseFinder
20
20
  * ci: https://norsk.cf-app.com/teams/main/pipelines/LicenseFinder
@@ -236,21 +236,21 @@ To record who approved the dependency and why:
236
236
  $ license_finder approvals add awesome_gpl_gem --who CTO --why "Go ahead"
237
237
  ```
238
238
 
239
- ### Whitelisting
239
+ ### Permitting Licenses
240
240
 
241
241
  Approving packages one-by-one can be tedious. Usually your business has
242
242
  blanket policies about which packages are approved. To tell `license_finder`
243
243
  that any package with the MIT license should be approved, run:
244
244
 
245
245
  ``` sh
246
- $ license_finder whitelist add MIT
246
+ $ license_finder permitted_licenses add MIT
247
247
  ```
248
248
 
249
249
  Any current or future packages with the MIT license will be excluded from the
250
250
  output of `license_finder`.
251
251
 
252
- You can also record `--who` and `--why` when changing the whitelist, or making
253
- any other decision about your project.
252
+ You can also record `--who` and `--why` when changing permitted licenses,
253
+ or making any other decision about your project.
254
254
 
255
255
 
256
256
  ## Output and Artifacts
@@ -270,7 +270,7 @@ decisions.
270
270
 
271
271
  You could expect `license_finder`, which is an alias for `license_finder
272
272
  action_items` to output something like the following on a Rails project where
273
- MIT had been whitelisted:
273
+ MIT had been permitted:
274
274
 
275
275
  ```
276
276
  Dependencies that need approval:
@@ -370,14 +370,14 @@ since it is a common dependency whose version changes from machine to
370
370
  machine. Adding it to the `ignored_dependencies` would prevent it
371
371
  (and its oscillating versions) from appearing in reports.
372
372
 
373
- ### Blacklisting Licenses
373
+ ### Restricting Licenses
374
374
 
375
- Some projects will have a list of licenses that cannot be used. You can add
376
- these licenses to the blacklist `license_finder blacklist add`. Any dependency
377
- that has exclusively blacklisted licenses will always appear in the action
378
- items, even if someone attempts to manually approve or whitelist it. However,
379
- if a dependency has even one license outside of the blacklist, it can still be
380
- manually approved or whitelisted.
375
+ Some projects will have a list of licenses that cannot be used. You can
376
+ restrict these licenses with `license_finder restricted_licenses add`. Any dependency
377
+ that has exclusively restricted licenses will always appear in the action
378
+ items, even if someone attempts to manually approve or permit it. However,
379
+ if a dependency has even one license that is not restricted, it can still be
380
+ manually approved or permitted.
381
381
 
382
382
 
383
383
  ## Configuration
data/Rakefile CHANGED
@@ -63,7 +63,7 @@ task :update_pipeline, [:slack_url, :slack_channel] do |_, args|
63
63
  puts 'Warning: You should provide slack channel and url to receive slack notifications on build failures'
64
64
  end
65
65
 
66
- ruby_versions = %w[2.6.5 2.5.3 2.4.5 2.3.8 jruby-9.1.17.0 jruby-9.2.6.0]
66
+ ruby_versions = %w[2.7.0 2.6.5 2.5.7 2.4.9 2.3.8 jruby-9.2.9.0]
67
67
 
68
68
  params = []
69
69
  params << "ruby_versions=#{ruby_versions.join(',')}"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.11.1
1
+ 6.0.0
@@ -15,8 +15,12 @@ except ImportError:
15
15
  from pip._vendor import pkg_resources
16
16
  from pip._vendor.six import print_
17
17
 
18
- requirements = [pkg_resources.Requirement.parse(str(req.req)) for req
19
- in parse_requirements(sys.argv[1], session=PipSession()) if req.req != None]
18
+ reqs = []
19
+ for req in parse_requirements(sys.argv[1], session=PipSession()):
20
+ if req.req == None or (req.markers != None and not req.markers.evaluate()): continue
21
+ reqs.append(req)
22
+
23
+ requirements = [pkg_resources.Requirement.parse(str(req.req)) for req in reqs]
20
24
 
21
25
  transform = lambda dist: {
22
26
  'name': dist.project_name,
@@ -45,19 +45,23 @@ jobs:
45
45
  public: true
46
46
  plan:
47
47
  - get: github-pull-request
48
+ tags: ["private-worker"]
48
49
  version: every
49
50
  trigger: true
50
51
  - put: dockerhub-pr
52
+ tags: ["private-worker"]
51
53
  params:
52
54
  build: github-pull-request
53
55
  on_success:
54
56
  put: github-pull-request
57
+ tags: ["private-worker"]
55
58
  params:
56
59
  path: github-pull-request
57
60
  status: success
58
61
  context: build-docker-image
59
62
  on_failure:
60
63
  put: github-pull-request
64
+ tags: ["private-worker"]
61
65
  params:
62
66
  path: github-pull-request
63
67
  status: failure
@@ -67,12 +71,15 @@ jobs:
67
71
  public: true
68
72
  plan:
69
73
  - get: github-pull-request
74
+ tags: ["private-worker"]
70
75
  passed: [build-docker-image]
71
76
  version: every
72
77
  - get: dockerhub-pr
78
+ tags: ["private-worker"]
73
79
  passed: [build-docker-image]
74
80
  trigger: true
75
81
  - task: ruby-<%= ruby_version %>
82
+ tags: ["private-worker"]
76
83
  privileged: true
77
84
  image: dockerhub-pr
78
85
  file: github-pull-request/ci/tasks/run-tests.yml
@@ -81,12 +88,14 @@ jobs:
81
88
  input_mapping: { LicenseFinder: github-pull-request }
82
89
  on_success:
83
90
  put: github-pull-request
91
+ tags: ["private-worker"]
84
92
  params:
85
93
  path: github-pull-request
86
94
  status: success
87
95
  context: ruby-<%= ruby_version %>
88
96
  on_failure:
89
97
  put: github-pull-request
98
+ tags: ["private-worker"]
90
99
  params:
91
100
  path: github-pull-request
92
101
  status: failure
@@ -94,6 +103,7 @@ jobs:
94
103
  <% if setup_slack %>
95
104
  on_failure:
96
105
  put: slack-alert
106
+ tags: ["private-worker"]
97
107
  params:
98
108
  channel: '<%= slack_channel %>'
99
109
  icon_emoji: ':crying_cat_face:'
@@ -105,20 +115,24 @@ jobs:
105
115
  public: true
106
116
  plan:
107
117
  - get: github-pull-request
118
+ tags: ["private-worker"]
108
119
  trigger: true
109
120
  version: every
110
121
  - task: run-rubocop
122
+ tags: ["private-worker"]
111
123
  privileged: true
112
124
  file: github-pull-request/ci/tasks/rubocop.yml
113
125
  input_mapping: { LicenseFinder: github-pull-request }
114
126
  on_success:
115
127
  put: github-pull-request
128
+ tags: ["private-worker"]
116
129
  params:
117
130
  path: github-pull-request
118
131
  status: success
119
132
  context: run-rubocop
120
133
  on_failure:
121
134
  put: github-pull-request
135
+ tags: ["private-worker"]
122
136
  params:
123
137
  path: github-pull-request
124
138
  status: failure
@@ -81,8 +81,10 @@ jobs:
81
81
  public: true
82
82
  plan:
83
83
  - get: git-master-dockerfile
84
+ tags: ["private-worker"]
84
85
  trigger: true
85
86
  - put: dockerhub-edge
87
+ tags: ["private-worker"]
86
88
  params:
87
89
  build: git-master-dockerfile
88
90
 
@@ -91,13 +93,16 @@ jobs:
91
93
  public: true
92
94
  plan:
93
95
  - get: dockerhub-edge
96
+ tags: ["private-worker"]
94
97
  passed: [build-docker-image]
95
98
  trigger: true
96
99
  - get: LicenseFinder
100
+ tags: ["private-worker"]
97
101
  resource: lf-git
98
102
  trigger: true
99
103
  version: every
100
104
  - task: ruby-<%= ruby_version %>
105
+ tags: ["private-worker"]
101
106
  privileged: true
102
107
  image: dockerhub-edge
103
108
  file: LicenseFinder/ci/tasks/run-tests.yml
@@ -106,6 +111,7 @@ jobs:
106
111
  <% if setup_slack %>
107
112
  on_failure:
108
113
  put: slack-alert
114
+ tags: ["private-worker"]
109
115
  params:
110
116
  channel: '<%= slack_channel %>'
111
117
  icon_emoji: ':crying_cat_face:'
@@ -117,13 +123,16 @@ jobs:
117
123
  public: true
118
124
  plan:
119
125
  - get: dockerhub-edge
126
+ tags: ["private-worker"]
120
127
  passed: [build-docker-image]
121
128
  trigger: true
122
129
  - get: LicenseFinder
130
+ tags: ["private-worker"]
123
131
  resource: lf-git
124
132
  trigger: true
125
133
  version: every
126
134
  - task: run-rubocop
135
+ tags: ["private-worker"]
127
136
  privileged: true
128
137
  file: LicenseFinder/ci/tasks/rubocop.yml
129
138
  input_mapping: { LicenseFinder: LicenseFinder }
@@ -131,49 +140,63 @@ jobs:
131
140
  - name: bump-major
132
141
  plan:
133
142
  - get: lf-git
143
+ tags: ["private-worker"]
134
144
  passed: [<%= ruby_versions.map{ |version| "ruby-#{version}"}.join(', ') %>]
135
145
  - put: semver-version
146
+ tags: ["private-worker"]
136
147
  params: {bump: major}
137
148
 
138
149
  - name: bump-minor
139
150
  plan:
140
151
  - get: lf-git
152
+ tags: ["private-worker"]
141
153
  passed: [<%= ruby_versions.map{ |version| "ruby-#{version}"}.join(', ') %>]
142
154
  - put: semver-version
155
+ tags: ["private-worker"]
143
156
  params: {bump: minor}
144
157
 
145
158
  - name: bump-patch
146
159
  plan:
147
160
  - get: lf-git
161
+ tags: ["private-worker"]
148
162
  passed: [<%= ruby_versions.map{ |version| "ruby-#{version}"}.join(', ') %>]
149
163
  - put: semver-version
164
+ tags: ["private-worker"]
150
165
  params: {bump: patch}
151
166
 
152
167
  - name: release
153
168
  plan:
154
169
  - get: lf-git-version
170
+ tags: ["private-worker"]
155
171
  - get: semver-version
172
+ tags: ["private-worker"]
156
173
  trigger: true
157
174
  passed: [bump-major, bump-minor, bump-patch]
158
175
  - get: dockerhub
176
+ tags: ["private-worker"]
159
177
  params:
160
178
  save: true
161
179
  - get: lf-release
180
+ tags: ["private-worker"]
162
181
  - task: update-changelog
182
+ tags: ["private-worker"]
163
183
  image: dockerhub
164
184
  params:
165
185
  GIT_USERNAME: ((GithubApiUser))
166
186
  GIT_EMAIL: ((GithubApiEmail))
167
187
  file: lf-git-version/ci/tasks/update-changelog.yml
168
188
  - put: dockerhub
189
+ tags: ["private-worker"]
169
190
  params:
170
191
  build: lf-git-version
171
192
  tag: version/version.txt
172
193
  tag_as_latest: true
173
194
  - put: lf-git-version
195
+ tags: ["private-worker"]
174
196
  params:
175
197
  repository: lf-git-changed
176
198
  - task: build-and-push-gem
199
+ tags: ["private-worker"]
177
200
  image: dockerhub
178
201
  params:
179
202
  GIT_USERNAME: ((GithubApiUser))
@@ -182,6 +205,7 @@ jobs:
182
205
  GEM_API_KEY: ((LicenseFinderGemApiKey))
183
206
  file: lf-git-version/ci/tasks/build-and-push-gem.yml
184
207
  - put: lf-release
208
+ tags: ["private-worker"]
185
209
  params:
186
210
  name: version/tag.txt
187
211
  tag: version/tag.txt
@@ -8,8 +8,8 @@ end
8
8
  require 'license_finder/cli/patched_thor'
9
9
  require 'license_finder/cli/base'
10
10
  require 'license_finder/cli/makes_decisions'
11
- require 'license_finder/cli/whitelist'
12
- require 'license_finder/cli/blacklist'
11
+ require 'license_finder/cli/permitted_licenses'
12
+ require 'license_finder/cli/restricted_licenses'
13
13
  require 'license_finder/cli/dependencies'
14
14
  require 'license_finder/cli/licenses'
15
15
  require 'license_finder/cli/approvals'