Solorigate: Extract to separate qlpack

Extracts solorigate to separate qlpacks in preparation for
publishing them to the registry.
This commit is contained in:
Andrew Eisenberg
2021-12-16 13:42:43 -08:00
parent 8fabbd697e
commit 50ee4ab330
53 changed files with 94 additions and 7 deletions

View File

@@ -8,6 +8,9 @@
"cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml",
"javascript/ql/experimental/adaptivethreatmodeling/lib/qlpack.yml",
"javascript/ql/experimental/adaptivethreatmodeling/src/qlpack.yml",
"csharp/ql/campaigns/Solorigate/lib/qlpack.yml",
"csharp/ql/campaigns/Solorigate/src/qlpack.yml",
"csharp/ql/campaigns/Solorigate/test/qlpack.yml",
"misc/legacy-support/*/qlpack.yml",
"misc/suite-helpers/qlpack.yml",
"ruby/extractor-pack/codeql-extractor.yml",

View File

@@ -0,0 +1 @@
## 1.0.0

View File

@@ -0,0 +1 @@
## 1.0.0

View File

@@ -0,0 +1,4 @@
---
dependencies: {}
compiled: false
lockVersion: 1.0.0

View File

@@ -0,0 +1,2 @@
---
lastReleaseVersion: 1.0.0

View File

@@ -0,0 +1,8 @@
name: codeql/solorigate-all
version: 1.0.0-dev
groups:
- csharp
- solorigate
library: true
dependencies:
codeql/csharp-all: ~0.0.3

View File

@@ -0,0 +1,29 @@
#!/bin/sh
set -e
SOLORIGATE_ROOT="$(dirname $0)"
WORKSPACE_ROOT="$SOLORIGATE_ROOT/../../../.."
GROUPS="solorigate,-test"
if [ -z "$CODEQL_DIST" ]; then
echo "CODEQL_DIST not set"
exit -1
fi
cd "$SOLORIGATE_ROOT"
echo Testing solorigate queries
"${CODEQL_DIST}/codeql" test run test
cd "$WORKSPACE_ROOT"
ech Preparing release
"${CODEQL_DIST}/codeql" codeql pack release --groups $GROUPS
echo Publishing solorigate
"${CODEQL_DIST}/codeql" pack publish --dry-run --groups $GROUPS
echo Bumping versions
"${CODEQL_DIST}/codeql" pack post-release --groups $GROUPS
echo Solorigate packs successfully published. Please commit and push the version changes.

View File

@@ -0,0 +1 @@
## 1.0.0

View File

@@ -0,0 +1 @@
## 1.0.0

View File

@@ -0,0 +1,2 @@
---
lastReleaseVersion: 1.0.0

View File

@@ -0,0 +1,4 @@
---
dependencies: {}
compiled: false
lockVersion: 1.0.0

View File

@@ -0,0 +1,9 @@
name: codeql/solorigate-queries
version: 1.0.0-dev
groups:
- csharp
- solorigate
defaultSuiteFile: codeql-suites/solorigate.qls
dependencies:
codeql/csharp-all: ~0.0.3
codeql/solorigate-all: ^1.0

View File

@@ -0,0 +1 @@
ModifiedFnvFunctionDetection.ql

View File

@@ -0,0 +1 @@
NumberOfKnownCommandsAboveThreshold.ql

View File

@@ -0,0 +1 @@
NumberOfKnownHashesAboveThreshold.ql

View File

@@ -0,0 +1 @@
NumberOfKnownLiteralsAboveThreshold.ql

View File

@@ -0,0 +1 @@
NumberOfKnownMethodNamesAboveThreshold.ql

View File

@@ -0,0 +1 @@
SwallowEverythingExceptionHandler.ql

View File

@@ -0,0 +1,4 @@
---
dependencies: {}
compiled: false
lockVersion: 1.0.0

View File

@@ -0,0 +1,12 @@
name: solorigate-tests
groups:
- csharp
- solorigate
- test
dependencies:
codeql/csharp-all: "*"
codeql/csharp-queries: "*"
codeql/solorigate-all: "*"
codeql/solorigate-queries: "*"
extractor: csharp
tests: .

View File

@@ -5,4 +5,4 @@ dbscheme: semmlecode.csharp.dbscheme
extractor: csharp
library: true
dependencies:
codeql/csharp-upgrades: ^0.0.3
codeql/csharp-upgrades: ~0.0.3

View File

@@ -1 +0,0 @@
experimental/Security Features/campaign/Solorigate/ModifiedFnvFunctionDetection.ql

View File

@@ -1 +0,0 @@
experimental/Security Features/campaign/Solorigate/NumberOfKnownCommandsAboveThreshold.ql

View File

@@ -1 +0,0 @@
experimental/Security Features/campaign/Solorigate/NumberOfKnownHashesAboveThreshold.ql

View File

@@ -1 +0,0 @@
experimental/Security Features/campaign/Solorigate/NumberOfKnownLiteralsAboveThreshold.ql

View File

@@ -1 +0,0 @@
experimental/Security Features/campaign/Solorigate/NumberOfKnownMethodNamesAboveThreshold.ql

View File

@@ -1 +0,0 @@
experimental/Security Features/campaign/Solorigate/SwallowEverythingExceptionHandler.ql

View File

@@ -2,5 +2,8 @@ name: codeql/javascript-experimental-atm-lib
version: 0.0.0
extractor: javascript
library: true
groups:
- javascript
- experimental
dependencies:
codeql/javascript-all: "*"

View File

@@ -3,6 +3,9 @@ language: javascript
version: 0.0.0
suites: codeql-suites
defaultSuiteFile: codeql-suites/javascript-atm-code-scanning.qls
groups:
- javascript
- experimental
dependencies:
codeql/javascript-experimental-atm-lib: "*"
mlModels: