Skip to content

Commit 6530d58

Browse files
authored
Add 'actions' to CodeQL analysis language matrix (#27)
1 parent a277ddd commit 6530d58

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
language: [ 'java' ]
37-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
38-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
36+
include:
37+
- language: actions
38+
build-mode: none
39+
- language: java
40+
build-mode: none
3941

4042
steps:
4143
- name: Checkout repository
@@ -52,29 +54,9 @@ jobs:
5254
uses: github/codeql-action/init@v3
5355
with:
5456
languages: ${{ matrix.language }}
55-
# If you wish to specify custom queries, you can do so here or in a config file.
56-
# By default, queries listed here will override any specified in a config file.
57-
# Prefix the list here with "+" to use these queries and those in the config file.
58-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
59-
60-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
61-
# If this step fails, then you should remove it and run the build manually (see below)
62-
- name: Autobuild
63-
uses: github/codeql-action/autobuild@v3
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
67-
68-
# ℹ️ Command-line programs to run using the OS shell.
69-
# 📚 https://git.io/JvXDl
70-
71-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
72-
# and modify them (or add more) to build your code if your project
73-
# uses a compiled language
74-
75-
#- run: |
76-
# make bootstrap
77-
# make release
57+
build-mode: ${{ matrix.build-mode }}
7858

7959
- name: Perform CodeQL Analysis
8060
uses: github/codeql-action/analyze@v3
61+
with:
62+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)