chef/chef-workstation

Berkshelf gem throwing authentication errors during Build/Test

johnmccrae opened this issue · 0 comments

Here's the build: https://buildkite.com/chef-oss/chef-chef-main-verify/builds/12141#620321f7-6e2c-42bf-bfbc-6da8a401d06f

The Berkshelf code connects to Github using an expired protocol.

Secondly, that repo needs to be forked and brought internal since Riot isn't maintaining it anymore.

<html>
<body>
<!--StartFragment-->

+Resolving cookbook dependencies...
--
  | Fetching 'berkshelf-cookbook-fixture' from git://github.com/RiotGames/berkshelf-cookbook-fixture.git (at v0.2.0)
  | -The cookbook downloaded for berkshelf-cookbook-fixture (= 1.0.0) did not satisfy the constraint.
  | +Git error: command `git clone git://github.com/RiotGames/berkshelf-cookbook-fixture.git "/tmp/chef-external-test20220315-1698-ytqos5/spec/tmp/berkshelf/.cache/git/226171626d0b818c0874edad994c390f7b232489" --bare --no-hardlinks` failed. If this error persists, try removing the cache directory at '/tmp/chef-external-test20220315-1698-ytqos5/spec/tmp/berkshelf/.cache/git/226171626d0b818c0874edad994c390f7b232489'.Output from the command:
  | +
  | +Cloning into bare repository '/tmp/chef-external-test20220315-1698-ytqos5/spec/tmp/berkshelf/.cache/git/226171626d0b818c0874edad994c390f7b232489'...
  | +fatal: remote error:
  | +  The unauthenticated git protocol on port 9418 is no longer supported.
  | +Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
  | (RSpec::Expectations::ExpectationNotMetError)
  | features/commands/install.feature:451:in `Then the output should contain:'
  | And the exit status should be "CookbookValidationFailure"                                 # features/step_definitions/cli_steps.rb:1

<!--EndFragment-->
</body>
</html>