Skip to content

[StepSecurity] Apply security best practices #180

[StepSecurity] Apply security best practices

[StepSecurity] Apply security best practices #180

Workflow file for this run

on:
- push
permissions:
contents: read
jobs:
rubocop:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} Rubocop
strategy:
matrix:
ruby: ['3.2.1']
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
with:
egress-policy: audit
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Set up Ruby
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop