Skip to content

Commit

Permalink
ci(codeql): detect cpp and charp
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Aug 12, 2023
1 parent 9f4f2aa commit 5ef8e3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
const supported_languages = ['cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift']
const remap_languages = {
'c++': 'cpp',
'c#': 'csharp',
'kotlin': 'java',
'typescript': 'javascript',
}
Expand All @@ -45,7 +47,7 @@ jobs:
"include": []
}
for (const [key, value] of Object.entries(response.data)) {
for (let [key, value] of Object.entries(response.data)) {
// remap language
if (remap_languages[key.toLowerCase()]) {
console.log(`Remapping language: ${key} to ${remap_languages[key.toLowerCase()]}`)
Expand Down Expand Up @@ -95,6 +97,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down

0 comments on commit 5ef8e3c

Please sign in to comment.