Improve README #262
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 18 * * 0' | |
jobs: | |
files-changed: | |
name: Detect file changes | |
runs-on: ubuntu-latest | |
outputs: | |
go: ${{ steps.changes.outputs.go }} | |
docs: ${{ steps.changes.outputs.docs }} | |
any: ${{ steps.changes.outputs.any }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check for backend file changes | |
uses: dorny/paths-filter@v3 | |
id: changes | |
with: | |
filters: .github/filters.yml | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
needs: [ files-changed ] | |
if: needs.files-changed.outputs.go == 'true' | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ['go'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |