Skip to content

Extend Rubocop workflow to allow setting of Github token #2

Extend Rubocop workflow to allow setting of Github token

Extend Rubocop workflow to allow setting of Github token #2

Workflow file for this run

name: Run RuboCop

Check failure on line 1 in .github/workflows/rubocop.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rubocop.yml

Invalid workflow file

`secrets` is not a valid event name
on:
workflow_call:
secrets:
BUNDLER_GITHUB_TOKEN:
required: false
description: "Token used for Bundler to authenticate when installing gems from private Github repos"
jobs:
run-rubocop:
name: Run RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
env:
BUNDLE_GITHUB__COM: "x-access-token:${{ secrets.BUNDLER_GITHUB_TOKEN }}"
- name: Run RuboCop
run: bundle exec rubocop --parallel --format github --format progress