Skip to content

Fix zizmor warning #3744

Fix zizmor warning

Fix zizmor warning #3744

Workflow file for this run

name: Rubocop
on:
push:
branches:
- main
- 0-11-stable
pull_request:
branches:
- main
- 0-11-stable
workflow_dispatch: {}
schedule:
- cron: "0 21 * * 6"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
rubocop:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Harden Runner
uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
with:
disable-sudo-and-containers: true
egress-policy: block
allowed-endpoints: >
github.com:443
index.rubygems.org:443
objects.githubusercontent.com:443
release-assets.githubusercontent.com:443
rubygems.org:443
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@14594264cd68ce8a2345dd349bc3d138a4ef85c8 # v1.327.0
with:
rubygems: "4.0.21"
bundler: "4.0.21"
bundler-cache: true
- run: |
bin/rubocop \
app/controllers/users_controller.rb \
app/controllers/unlink_githubs_controller.rb \
app/controllers/unlink_googles_controller.rb \
app/interactors/user_destroy.rb \
spec/factories/app_factory.rb \
spec/factories/user_factory.rb \
spec/requests/users_controller_spec.rb \
spec/requests/unlink_githubs_controller_spec.rb \
spec/requests/unlink_googles_controller_spec.rb