Skip to content

Danger needs a new GitHub API token #101

@samsonjs

Description

@samsonjs

@dblock Got this failure and it seems like the API token we bundle in the repo for danger is no longer valid. See #100

Run # the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
  # the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
  TOKEN=$(echo -n Z2hwX2lYb0dPNXNyejYzOFJyaTV3QUxUdkNiS1dtblFwZTFuRXpmMwo= | base64 --decode)
  DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
  shell: /usr/bin/bash -e {0}
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
bundler: failed to load command: danger (/opt/hostedtoolcache/Ruby/3.4.4/x64/bin/danger)
/opt/hostedtoolcache/Ruby/3.4.4/x64/lib/ruby/gems/3.4.0/gems/octokit-10.0.0/lib/octokit/response/raise_error.rb:14:in 'Octokit::Response::RaiseError#on_complete': GET https://api.github.com/repos/ruby-grape/grape-active_model_serializers/pulls/100: 401 - Bad credentials // See: https://docs.github.com/rest (Octokit::Unauthorized)
	from /opt/hostedtoolcache/Ruby/3.4.4/x64/lib/ruby/gems/3.4.0/gems/faraday-2.14.0/lib/faraday/middleware.rb:57:in 'block in 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions