dev-yakuza / dev-yakuza.github.io

8 stars 9 forks source link

[GitLab] Dependabot - Let's see how to add Dependabot to GitLab for checking automatically the version updating of the libraries in the project. #88

Open utterances-bot opened 11 months ago

utterances-bot commented 11 months ago

[GitLab] Dependabot - Let's see how to add Dependabot to GitLab for checking automatically the version updating of the libraries in the project.

Let's see how to add Dependabot to GitLab for checking automatically the version updating of the libraries in the project.

https://dev-yakuza.posstree.com/en/gitlab/dependabot/

Ainah commented 11 months ago

Hello, I follow all your step but still have the latest error ERROR: Job failed: failed to pull image "dependabot/dependabot-script" with specified policies [always]: Error response from daemon: pull acces s denied for dependabot/dependabot-script, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go: 237:2s)

Could you help please? I have already change the gitlab-ci.yml as suggested but still have the error.

dev-yakuza commented 11 months ago

Hi @Ainah

Have you ever followed this?

Thanks.

Ainah commented 11 months ago

Hi,

Yes, I have already do that and it works.Thank you! But now I have another error about the ruby. I'll try to debug it now.

$ bundle exec ruby ./generic-update-script.rb /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2. /usr/local/lib/ruby/gems/3.1.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:91:in `block in materialize': Could not find concurrent-ruby-1.1.10 in any of the sources (Bundler::GemNotFound)

Thank you for your help.

dev-yakuza commented 10 months ago

@Ainah

I think it looks like the ruby version is different... 🤔

I will try to find a solution.

Ainah commented 10 months ago

Hello, I have found a solution by adding that line in .gitalb-ci.yml "bundle update concurrent-ruby" .dependabot: image: dependabot/dependabot-script variables: PACKAGE_MANAGER: $CI_JOB_NAME script:

I was faced SSL error too, trying to add latest certificate in Dockerfile but no way. So I added in the script generic-update-script.rb (temporary solution): require 'openssl' OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

Hope that helps someone else!

dev-yakuza commented 10 months ago

@Ainah

Thanks for sharing the solution. 🙇

Your solution is very helpful for other people who face the same issue.