You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# required to fetch internal or private CodeQL packs
38
+
packages: read
39
+
40
+
# typical for public repos (safe to keep)
41
+
actions: read
42
+
contents: read
43
+
44
+
strategy:
45
+
fail-fast: false
46
+
matrix:
47
+
include:
48
+
# Scan GitHub Actions workflows (YAML) for common issues.
49
+
- language: actions
50
+
build-mode: none
51
+
52
+
# Primary language of this repo (KeelMatrix.QueryWatch)
53
+
- language: csharp
54
+
# Let CodeQL discover and build your solution automatically.
55
+
build-mode: autobuild
56
+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
57
+
# Use `c-cpp` to analyze code written in C, C++ or both
58
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
59
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
60
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
61
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
62
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
63
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
64
+
65
+
steps:
66
+
- name: Checkout repository
67
+
uses: actions/checkout@v4
68
+
69
+
# Add any setup steps before running the `github/codeql-action/init` action.
70
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
71
+
# or others). This is typically only required for manual builds.
72
+
# - name: Setup runtime (example)
73
+
# uses: actions/setup-example@v1
74
+
75
+
# Ensure .NET 8 SDK is present for autobuild of the C# solution.
76
+
- name: Set up .NET 8
77
+
if: matrix.language == 'csharp'
78
+
uses: actions/setup-dotnet@v4
79
+
with:
80
+
dotnet-version: '8.0.x'
81
+
82
+
# Initializes the CodeQL tools for scanning.
83
+
- name: Initialize CodeQL
84
+
uses: github/codeql-action/init@v3
85
+
with:
86
+
languages: ${{ matrix.language }}
87
+
build-mode: ${{ matrix.build-mode }}
88
+
# If you wish to specify custom queries, you can do so here or in a config file.
89
+
# By default, queries listed here will override any specified in a config file.
90
+
# Prefix the list here with "+" to use these queries and those in the config file.
91
+
#
92
+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
93
+
queries: +security-extended,security-and-quality
94
+
95
+
# If the analyze step fails for one of the languages you are analyzing with
96
+
# "We were unable to automatically build your code", modify the matrix above
97
+
# to set the build mode to "manual" for that language. Then modify this step
98
+
# to build your code.
99
+
# ℹ️ Command-line programs to run using the OS shell.
100
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
101
+
- if: matrix.build-mode == 'manual'
102
+
shell: bash
103
+
run: |
104
+
echo 'If you are using a "manual" build mode for one or more of the' \
105
+
'languages you are analyzing, replace this with the commands to build' \
0 commit comments