You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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
Resolved by #104, now merged. Danger uses the built-in GITHUB_TOKEN through tokenless report/comment workflows instead of the expired bundled personal access token. Tokenless Danger report generation passes.
Activity
samsonjs commentedon Dec 3, 2025
The current token matches what's in grape so I'm not sure why it's not working. Maybe it doesn't work because my PR branch is in my fork?
https://github.com/ruby-grape/grape/blob/master/.github/workflows/danger.yml
dblock commentedon Oct 26, 2026
Resolved by #104, now merged. Danger uses the built-in GITHUB_TOKEN through tokenless report/comment workflows instead of the expired bundled personal access token. Tokenless Danger report generation passes.
Posted by Copilot, an AI, on behalf of @dblock.
samsonjs commentedon Oct 26, 2026
Thank you!