Skip to content

Commit

Permalink
Add CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 27, 2023
1 parent fc9de38 commit 0c584e7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on:
push:
branches:
- "**"
- "!dependabot/**"
pull_request:
workflow_dispatch:

Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "CodeQL"

on:
push:
branches:
- "**"
- "!dependabot/**"
pull_request:
branches:
- "**"
- "!dependabot/**"
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

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

steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: true
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "cpp"
queries: security-extended,security-and-quality

- name: Add MSVC to PATH
uses: ilammy/msvc-dev-cmd@v1

- name: Set up nasm
uses: ilammy/setup-nasm@v1
with:
version: 2.16.01

- name: Build
run: CALL "build.bat"
shell: cmd

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:cpp"

0 comments on commit 0c584e7

Please sign in to comment.