ruby-grape/grape-swagger-rails

View on GitHub
.github/workflows/danger.yml

Summary

Maintainability
Test Coverage
name: Danger
on: [pull_request]
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "2.7"
          bundler-cache: true
      - name: Run Danger
        run: |
          # 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