Trouble with linting workflow in a plugin

AI-generated summary

pfaffman is experiencing issues with a linting workflow in a Discourse plugin, specifically with RuboCop failing due to outdated configuration in rubocop-rspec.yml. The errors relate to deprecated cop names and namespace changes, such as RSpec/FactoryBot needing to be updated to FactoryBot. The workflow is triggered by a schedule and uses a GitHub Actions template from discourse/.github, but the user is unsure why it’s failing only on scheduled runs and cannot locate the referenced workflow file.

Trouble with robocop and linting?

I’ve got this in my workflow, that is mostly copied from

name: Discourse Plugin

on:
  push:
    branches:
      - main
      - master

  schedule: 
      - cron: 22 05 * * *

  jobs:
    ci:
      uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1

and my job is failing like this:

Run bundle exec rubocop .
vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml: RSpec/FactoryBot/AttributeDefinedStatically has the wrong namespace - should be FactoryBot
vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml: RSpec/FactoryBot/CreateList has the wrong namespace - should be FactoryBot
vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml: RSpec/FactoryBot/FactoryClassName has the wrong namespace - should be FactoryBot
Error: The `RSpec/FilePath` cop has been split into `RSpec/SpecFilePathFormat` and `RSpec/SpecFilePathSuffix`.
(obsolete configuration found in vendor/bundle/ruby/3.1.0/gems/rubocop-discourse-3.3.0/rubocop-rspec.yml, please update it)
Error: Process completed with exit code 2.

I don’t know where to find discourse/.github/.github/workflows/discourse-plugin.yml@v1 to see what it’s doing.

But I don’t think any of my other ones are failing. Is it somehow not working because it’s running on a schedule?