Skip to content

Commit 999e37d

Browse files
author
Alvaro Muñoz
committed
Add cpp packs
1 parent 937b6ae commit 999e37d

File tree

22 files changed

+287
-3
lines changed

22 files changed

+287
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
language: [ 'csharp', 'go', 'java', 'python', 'ruby' ]
15+
language: [ 'cpp', 'csharp', 'go', 'java', 'python', 'ruby' ]
1616

1717
steps:
1818
- uses: actions/checkout@v3

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
language: ["csharp", "go", "java", "python", "ruby"]
20+
language: ["cpp", "csharp", "go", "java", "python", "ruby"]
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -54,7 +54,7 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
language: ["csharp", "go", "java", "python", "ruby"]
57+
language: ["cpp", "csharp", "go", "java", "python", "ruby"]
5858

5959
steps:
6060
- uses: actions/checkout@v3

codeql-workspace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
provide:
2+
- cpp/**/qlpack.yml
23
- csharp/**/qlpack.yml
34
- go/**/qlpack.yml
45
- java/**/qlpack.yml

cpp/lib/applications/.gitkeep

Whitespace-only changes.

cpp/lib/frameworks/.gitkeep

Whitespace-only changes.

cpp/lib/github/.gitkeep

Whitespace-only changes.

cpp/lib/qlpack.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
library: true
2+
name: githubsecuritylab/codeql-cpp-libs
3+
version: 0.0.1
4+
dependencies:
5+
codeql/cpp-all: '*'

cpp/src/CVEs/.gitkeep

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @name External dependencies
3+
* @description Count the number of dependencies that a Java project has on external packages.
4+
* @kind treemap
5+
* @id githubsecuritylab/external-dependencies
6+
* @metricType externalDependency
7+
* @tags audit
8+
*/
9+
10+
import Metrics.Dependencies.ExternalDependencies
11+
12+
from File file, int num, string encodedDependency
13+
where encodedDependencies(file, encodedDependency, num)
14+
select encodedDependency, num order by num desc

cpp/src/audit/explore/Files.ql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @name Files
3+
* @description List of all files in the repository
4+
* @kind table
5+
* @id githubsecuritylab/files
6+
* @tags audit
7+
*/
8+
9+
import cpp
10+
11+
from File f
12+
where f.getExtension() = ["c", "cpp"] and not f.getRelativePath().matches("%/test/%")
13+
select f.getRelativePath()

0 commit comments

Comments
 (0)