Skip to content

fix: build/deploy permissions part 3 #4188

fix: build/deploy permissions part 3

fix: build/deploy permissions part 3 #4188

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
merge_group:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup Ruby
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # v1
with:
bundler-cache: true
- name: Run linters
if: ${{ github.event_name != 'merge_group' }}
uses: wearerequired/lint-action@548d8a7c4b04d3553d32ed5b6e91eb171e10e7bb # v2
with:
auto_fix: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
rubocop: true
rubocop_command_prefix: bundle exec
- name: Skip with successful status
if: ${{ github.event_name == 'merge_group' }}
run: exit 0