1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 17:19:00 +03:00
Octobot/.github/workflows/codeql.yml

45 lines
940 B
YAML
Raw Normal View History

2022-10-20 19:23:59 +03:00
name: "CodeQL"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
2022-10-20 19:23:59 +03:00
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '45 7 * * 2'
jobs:
analyze:
name: Analyze code
2022-10-20 19:23:59 +03:00
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
2022-10-20 19:23:59 +03:00
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL analysis
2022-10-20 19:23:59 +03:00
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"