Skip to content

Commit

Permalink
Create codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletTanyavong authored Oct 19, 2023
1 parent fcf8241 commit 66f2ab1
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# CodeQL analysis for Mathematics.NET

name: "CodeQL"

on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '00 2 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ['ubuntu-latest']
timeout-minutes: 360
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 }}

- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 66f2ab1

Please sign in to comment.