forked from TeamInklings/Octobot
l1ttleO
28b0668628
And cancel workflows in progress to avoid having multiple of the same workflow running
44 lines
940 B
YAML
44 lines
940 B
YAML
name: "CodeQL"
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
schedule:
|
|
- cron: '45 7 * * 2'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze code
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'csharp' ]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: +security-extended,security-and-quality
|
|
|
|
- name: Build solution
|
|
uses: github/codeql-action/autobuild@v2
|
|
|
|
- name: Perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@v2
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|