Skip to content

Commit

Permalink
Create codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mihakralj authored Oct 10, 2024
1 parent a2af997 commit bad7c5c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CodeQL Advanced (C# Only)"

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
schedule:
- cron: '20 5 * * 0'

jobs:
analyze:
name: Analyze (C#)
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp
build-mode: autobuild # Using autobuild mode for C#

# This step will automatically build the C# project
- name: Autobuild
uses: github/codeql-action/autobuild@v3

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

0 comments on commit bad7c5c

Please sign in to comment.