Skip to content

Commit 50ee4ab

Browse files
committed
Solorigate: Extract to separate qlpack
Extracts solorigate to separate qlpacks in preparation for publishing them to the registry.
1 parent 8fabbd6 commit 50ee4ab

File tree

53 files changed

+94
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+94
-7
lines changed

.codeqlmanifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml",
99
"javascript/ql/experimental/adaptivethreatmodeling/lib/qlpack.yml",
1010
"javascript/ql/experimental/adaptivethreatmodeling/src/qlpack.yml",
11+
"csharp/ql/campaigns/Solorigate/lib/qlpack.yml",
12+
"csharp/ql/campaigns/Solorigate/src/qlpack.yml",
13+
"csharp/ql/campaigns/Solorigate/test/qlpack.yml",
1114
"misc/legacy-support/*/qlpack.yml",
1215
"misc/suite-helpers/qlpack.yml",
1316
"ruby/extractor-pack/codeql-extractor.yml",
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
dependencies: {}
3+
compiled: false
4+
lockVersion: 1.0.0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
lastReleaseVersion: 1.0.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: codeql/solorigate-all
2+
version: 1.0.0-dev
3+
groups:
4+
- csharp
5+
- solorigate
6+
library: true
7+
dependencies:
8+
codeql/csharp-all: ~0.0.3
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
SOLORIGATE_ROOT="$(dirname $0)"
6+
WORKSPACE_ROOT="$SOLORIGATE_ROOT/../../../.."
7+
GROUPS="solorigate,-test"
8+
9+
if [ -z "$CODEQL_DIST" ]; then
10+
echo "CODEQL_DIST not set"
11+
exit -1
12+
fi
13+
14+
cd "$SOLORIGATE_ROOT"
15+
echo Testing solorigate queries
16+
"${CODEQL_DIST}/codeql" test run test
17+
18+
cd "$WORKSPACE_ROOT"
19+
20+
ech Preparing release
21+
"${CODEQL_DIST}/codeql" codeql pack release --groups $GROUPS
22+
23+
echo Publishing solorigate
24+
"${CODEQL_DIST}/codeql" pack publish --dry-run --groups $GROUPS
25+
26+
echo Bumping versions
27+
"${CODEQL_DIST}/codeql" pack post-release --groups $GROUPS
28+
29+
echo Solorigate packs successfully published. Please commit and push the version changes.
Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)