Skip to content

Commit 0ea015a

Browse files
authored
Merge pull request #384 from microsoft/dilan/2.26.1-manual-sync
2.26.2 Manual Upgrade
2 parents 02af720 + 57b13e6 commit 0ea015a

2,143 files changed

Lines changed: 36907 additions & 23054 deletions

File tree

Some content is hidden

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

Cargo.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ members = [
66
"shared/tree-sitter-extractor",
77
"shared/yeast",
88
"shared/yeast-macros",
9+
"shared/yeast-schema",
910
"ruby/extractor",
1011
"unified/extractor",
1112
"unified/extractor/tree-sitter-swift",
13+
"unified/swift-syntax-rs",
1214
"rust/extractor",
1315
"rust/extractor/macros",
1416
"rust/ast-generator",

MODULE.bazel

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,20 @@ bazel_dep(name = "rules_python", version = "1.9.0")
2424
bazel_dep(name = "rules_shell", version = "0.7.1")
2525
bazel_dep(name = "bazel_skylib", version = "1.9.0")
2626
bazel_dep(name = "abseil-cpp", version = "20260107.1", repo_name = "absl")
27-
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
27+
bazel_dep(name = "nlohmann_json", version = "3.12.0.bcr.1", repo_name = "json")
2828
bazel_dep(name = "fmt", version = "12.1.0-codeql.1")
2929
bazel_dep(name = "rules_kotlin", version = "2.2.2-codeql.1")
3030
bazel_dep(name = "gazelle", version = "0.50.0")
3131
bazel_dep(name = "rules_dotnet", version = "0.21.5-codeql.1")
3232
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
3333
bazel_dep(name = "rules_rust", version = "0.69.0")
34+
bazel_dep(name = "rules_swift", version = "4.0.0-rc4")
35+
bazel_dep(name = "swift-syntax", version = "603.0.2")
36+
37+
# Needed so we can `use_repo` `local_config_xcode` and
38+
# `local_config_apple_cc_toolchains` below (referenced by the per-target
39+
# Xcode-config transition in `unified/swift-syntax-rs/xcode_transition.bzl`).
40+
bazel_dep(name = "apple_support", version = "2.6.1")
3441
bazel_dep(name = "zstd", version = "1.5.7.bcr.1")
3542

3643
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
@@ -219,6 +226,41 @@ use_repo(
219226
"swift-resource-dir-macos",
220227
)
221228

229+
# Swift toolchain for building `unified/swift-syntax-rs`. On Linux we register
230+
# a hermetic swift.org toolchain as the exec toolchain; on macOS `rules_swift`
231+
# auto-registers `xcode_swift_toolchain` (host Xcode + OS-provided Swift
232+
# runtime), which is not hermetic.
233+
#
234+
# The version is pinned as a literal rather than read from
235+
# `unified/swift-syntax-rs/.swift-version` via `swift_version_file`: the latter
236+
# makes the extension `module_ctx.read` a `//unified/...` label, which fails to
237+
# resolve when this repo is consumed as a dependency module (`@@ql+`) whose
238+
# `unified/swift-syntax-rs` package is not loadable in that context. Keep this
239+
# in sync with `unified/swift-syntax-rs/.swift-version` (used by the `cargo`
240+
# build) and the `swift-syntax` release in `swift/Package.swift`.
241+
swift = use_extension("@rules_swift//swift:extensions.bzl", "swift")
242+
swift.toolchain(
243+
name = "swift_toolchain",
244+
swift_version = "6.3.2",
245+
)
246+
use_repo(
247+
swift,
248+
"swift_toolchain",
249+
"swift_toolchain_ubuntu22.04",
250+
)
251+
252+
register_toolchains(
253+
"@swift_toolchain//:swift_toolchain_exec_ubuntu22.04",
254+
)
255+
256+
# `apple_support`'s xcode_config and CC toolchains, needed by the Xcode
257+
# transition in `unified/swift-syntax-rs/xcode_transition.bzl`.
258+
xcode_configure = use_extension("@apple_support//xcode:xcode_configure.bzl", "xcode_configure_extension")
259+
use_repo(xcode_configure, "local_config_xcode")
260+
261+
apple_cc_configure = use_extension("@apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
262+
use_repo(apple_cc_configure, "local_config_apple_cc_toolchains")
263+
222264
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
223265
node.toolchain(
224266
name = "nodejs",
@@ -276,7 +318,7 @@ use_repo(
276318
)
277319

278320
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
279-
go_sdk.download(version = "1.26.4")
321+
go_sdk.download(version = "1.26.5")
280322

281323
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
282324
go_deps.from_file(go_mod = "//go/extractor:go.mod")

actions/ql/lib/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.4.40
2+
3+
### Minor Analysis Improvements
4+
5+
* Altered the logic of `EnvironmentCheck` to make sure it is a check that protects only for non-toctou. This change will result in more results being found by the queries: `actions/untrusted-checkout-toctou/high` and `actions/untrusted-checkout-toctou/critical`.
6+
7+
## 0.4.39
8+
9+
No user-facing changes.
10+
111
## 0.4.38
212

313
### Bug Fixes
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.4.39
2+
3+
No user-facing changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 0.4.40
2+
3+
### Minor Analysis Improvements
4+
5+
* Altered the logic of `EnvironmentCheck` to make sure it is a check that protects only for non-toctou. This change will result in more results being found by the queries: `actions/untrusted-checkout-toctou/high` and `actions/untrusted-checkout-toctou/critical`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.4.38
2+
lastReleaseVersion: 0.4.40

actions/ql/lib/codeql/actions/security/ControlChecks.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,8 @@ class EnvironmentCheck extends ControlCheck instanceof Environment {
280280
// Environment checks are not effective against any mutable attacks
281281
// they do actually protect against untrusted code execution (sha)
282282
override predicate protectsCategoryAndEvent(string category, string event) {
283-
event = actor_is_attacker_event() and category = any_category()
284-
or
285-
event = actor_not_attacker_event() and category = non_toctou_category()
283+
event = [actor_is_attacker_event(), actor_not_attacker_event()] and
284+
category = non_toctou_category()
286285
}
287286
}
288287

actions/ql/lib/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/actions-all
2-
version: 0.4.38
2+
version: 0.4.40
33
library: true
44
warnOnImplicitThis: true
55
dependencies:

actions/ql/src/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.6.32
2+
3+
No user-facing changes.
4+
5+
## 0.6.31
6+
7+
No user-facing changes.
8+
19
## 0.6.30
210

311
### Query Metadata Changes

0 commit comments

Comments
 (0)