Skip to content

Commit

Permalink
Re-Fix CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Reelix authored Nov 18, 2023
1 parent bc1e4a1 commit c6fe648
Showing 1 changed file with 12 additions and 32 deletions.
44 changes: 12 additions & 32 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,46 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [master]
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [ "main" ]
schedule:
- cron: '0 14 * * 0'

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

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['csharp']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

language: [ 'csharp' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.100'

# Initializes the CodeQL tools for scanning.

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

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

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release


- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

with:
category: "/language:${{matrix.language}}"

0 comments on commit c6fe648

Please sign in to comment.