name: "CodeQL"

on:
 push:
   branches: [ master ]
 pull_request:
   branches: [ master ]

jobs:
 analyze:
   name: Analyze
   runs-on: ubuntu-latest
   permissions:
     actions: read
     contents: read
     security-events: write

   strategy:
     fail-fast: false

   steps:
   - name: Checkout repository
     uses: actions/checkout@v3

   - name: Initialize CodeQL
     uses: github/codeql-action/init@v2
     with:
       languages: ruby
       config-file: ./.github/codeql/codeql-config.yml

   - name: Perform CodeQL Analysis
     uses: github/codeql-action/analyze@v2

name: "CodeQL"

on:
 push:
   branches:
     - master
 pull_request:
   branches:
     - master

jobs:
 analyze:
   name: Analyze
   runs-on: ubuntu-latest
   permissions:
     actions: read
     contents: read
     security-events: write

   steps:
   - name: Checkout repository
     uses: actions/checkout@v3

   - name: Initialize CodeQL
     uses: github/codeql-action/init@v2
     with:
       languages: ruby
       config-file: ./.github/codeql/codeql-config.yml

   - name: Perform CodeQL Analysis
     uses: github/codeql-action/analyze@v2

Improve branch triggers and remove `fail-fast`
workflows/codeql: Improve branch triggers and remove `fail-fast`

Co-authored-by: Mike McQuaid <a17fed27eaa842282862ff7c1b9c8395a26ac320@mikemcquaid.com>
