Skip to content

Commit d032960

Browse files
committed
Manual merge v2.17.2
2 parents 7d944cc + 8e251ee commit d032960

File tree

1,861 files changed

+34926
-255116
lines changed

Some content is hidden

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

1,861 files changed

+34926
-255116
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ build:linux --cxxopt=-std=c++20
1414
build:macos --cxxopt=-std=c++20 --cpu=darwin_x86_64
1515
build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor
1616

17+
common --registry=file:///%workspace%/misc/bazel/registry
18+
common --registry=https://bcr.bazel.build
19+
1720
try-import %workspace%/local.bazelrc

.bazelrc.internal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# this file should contain bazel settings required to build things from `semmle-code`
2+
3+
common --registry=file:///%workspace%/ql/misc/bazel/registry
4+
common --registry=https://bcr.bazel.build

.gitattributes

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ go/extractor/opencsv/CSVReader.java -text
6767
# for those testing dbscheme files.
6868
*/ql/lib/upgrades/initial/*.dbscheme -text
6969

70-
# Generated test files - these are synced from the standard JavaScript libraries using
71-
# `javascript/ql/experimental/adaptivethreatmodeling/test/update_endpoint_test_files.py`.
72-
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.js linguist-generated=true -merge
73-
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.ts linguist-generated=true -merge
74-
7570
# Auto-generated modeling for Python
7671
python/ql/lib/semmle/python/frameworks/data/internal/subclass-capture/*.yml linguist-generated=true
7772

.github/labeler.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Java:
1515
- change-notes/**/*java.*
1616

1717
JS:
18-
- any: [ 'javascript/**/*', '!javascript/ql/experimental/adaptivethreatmodeling/**/*' ]
18+
- any: [ 'javascript/**/*' ]
1919
- change-notes/**/*javascript*
2020

2121
Kotlin:
@@ -46,6 +46,3 @@ documentation:
4646
# Since these are all shared files that need to be synced, just pick _one_ copy of each.
4747
"DataFlow Library":
4848
- "shared/dataflow/**/*"
49-
50-
"ATM":
51-
- javascript/ql/experimental/adaptivethreatmodeling/**/*

.github/workflows/buildifier.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check bazel formatting
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "**.bazel"
7+
- "**.bzl"
8+
branches:
9+
- main
10+
- "rc/*"
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
check:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Check bazel formatting
22+
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
23+
with:
24+
extra_args: >
25+
buildifier --all-files 2>&1 ||
26+
(
27+
echo -e "In order to format all bazel files, please run:\n bazel run //:buildifier"; exit 1
28+
)

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ repos:
2020
- id: autopep8
2121
files: ^misc/codegen/.*\.py
2222

23-
- repo: https://github.com/warchant/pre-commit-buildifier
24-
rev: 0.0.2
23+
- repo: local
2524
hooks:
2625
- id: buildifier
26+
name: Format bazel files
27+
files: \.(bazel|bzl)
28+
language: system
29+
entry: bazel run //:buildifier
30+
pass_filenames: false
2731

28-
- repo: local
29-
hooks:
3032
- id: codeql-format
3133
name: Fix QL file formatting
3234
files: \.qll?$

BUILD.bazel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
2+
3+
buildifier(
4+
name = "buildifier",
5+
exclude_patterns = [
6+
"./.git/*",
7+
],
8+
lint_mode = "fix",
9+
)

CODEOWNERS

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
/java/ql/test-kotlin1/ @github/codeql-kotlin
1313
/java/ql/test-kotlin2/ @github/codeql-kotlin
1414

15-
# ML-powered queries
16-
/javascript/ql/experimental/adaptivethreatmodeling/ @github/codeql-ml-powered-queries-reviewers
17-
1815
# CodeQL tools and associated docs
1916
/docs/codeql/codeql-cli/ @github/codeql-cli-reviewers
2017
/docs/codeql/codeql-for-visual-studio-code/ @github/codeql-vscode-reviewers
@@ -37,9 +34,7 @@ MODULE.bazel @github/codeql-ci-reviewers
3734

3835
# Workflows
3936
/.github/workflows/ @github/codeql-ci-reviewers
40-
/.github/workflows/atm-* @github/codeql-ml-powered-queries-reviewers
4137
/.github/workflows/go-* @github/codeql-go
42-
/.github/workflows/js-ml-tests.yml @github/codeql-ml-powered-queries-reviewers
4338
/.github/workflows/ql-for-ql-* @github/codeql-ql-for-ql-reviewers
4439
/.github/workflows/ruby-* @github/codeql-ruby
4540
/.github/workflows/swift.yml @github/codeql-swift

MODULE.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ local_path_override(
1414
# see https://registry.bazel.build/ for a list of available packages
1515

1616
bazel_dep(name = "platforms", version = "0.0.8")
17-
bazel_dep(name = "rules_pkg", version = "0.9.1")
17+
bazel_dep(name = "rules_pkg", version = "0.10.1")
1818
bazel_dep(name = "rules_nodejs", version = "6.0.3")
1919
bazel_dep(name = "rules_python", version = "0.31.0")
2020
bazel_dep(name = "bazel_skylib", version = "1.5.0")
2121
bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "absl")
2222
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
2323
bazel_dep(name = "fmt", version = "10.0.0")
2424

25+
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
26+
2527
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
2628
pip.parse(
2729
hub_name = "codegen_deps",

codeql-workspace.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ provide:
1111
- "cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml"
1212
- "go/ql/config/legacy-support/qlpack.yml"
1313
- "go/build/codeql-extractor-go/codeql-extractor.yml"
14-
- "javascript/ql/experimental/adaptivethreatmodeling/lib/qlpack.yml"
15-
# This pack is explicitly excluded from the workspace since most users
16-
# will want to use a version of this pack from the package cache. Internal
17-
# users can uncomment the following line and place a custom ML model
18-
# in the corresponding pack to test a custom ML model within their local
19-
# checkout.
20-
# - "javascript/ql/experimental/adaptivethreatmodeling/model/qlpack.yml"
21-
- "javascript/ql/experimental/adaptivethreatmodeling/modelbuilding/qlpack.yml"
22-
- "javascript/ql/experimental/adaptivethreatmodeling/src/qlpack.yml"
23-
- "javascript/ql/experimental/adaptivethreatmodeling/test/qlpack.yml"
2414
- "csharp/ql/campaigns/Solorigate/lib/qlpack.yml"
2515
- "csharp/ql/campaigns/Solorigate/src/qlpack.yml"
2616
- "csharp/ql/campaigns/Solorigate/test/qlpack.yml"

0 commit comments

Comments
 (0)