Skip to content

Commit aed695e

Browse files
committed
Merge branch 'main' into rust/force-stable-toolchain
2 parents 7b8a773 + 53db3bd commit aed695e

576 files changed

Lines changed: 8627 additions & 2939 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.

MODULE.bazel

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,13 @@ use_repo(
240240
swift,
241241
"swift_toolchain",
242242
"swift_toolchain_ubuntu22.04",
243+
"swift_toolchain_ubuntu22.04-aarch64",
243244
"swift_toolchain_xcode",
244245
)
245246

246247
register_toolchains(
247248
"@swift_toolchain//:swift_toolchain_exec_ubuntu22.04",
249+
"@swift_toolchain//:swift_toolchain_exec_ubuntu22.04-aarch64",
248250
"@swift_toolchain//:swift_toolchain_exec_xcode",
249251
dev_dependency = True,
250252
)
@@ -279,6 +281,7 @@ use_repo(
279281
"kotlin-compiler-2.3.0",
280282
"kotlin-compiler-2.3.20",
281283
"kotlin-compiler-2.4.0",
284+
"kotlin-compiler-2.4.20",
282285
"kotlin-compiler-embeddable-1.8.0",
283286
"kotlin-compiler-embeddable-1.9.0-Beta",
284287
"kotlin-compiler-embeddable-1.9.20-Beta",
@@ -291,6 +294,7 @@ use_repo(
291294
"kotlin-compiler-embeddable-2.3.0",
292295
"kotlin-compiler-embeddable-2.3.20",
293296
"kotlin-compiler-embeddable-2.4.0",
297+
"kotlin-compiler-embeddable-2.4.20",
294298
"kotlin-stdlib-1.8.0",
295299
"kotlin-stdlib-1.9.0-Beta",
296300
"kotlin-stdlib-1.9.20-Beta",
@@ -303,10 +307,11 @@ use_repo(
303307
"kotlin-stdlib-2.3.0",
304308
"kotlin-stdlib-2.3.20",
305309
"kotlin-stdlib-2.4.0",
310+
"kotlin-stdlib-2.4.20",
306311
)
307312

308313
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
309-
go_sdk.download(version = "1.27.0")
314+
go_sdk.download(version = "1.27.1")
310315

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

actions/extractor/tools/autobuild-impl.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ $DefaultPathFilters = @(
99
'include:.github/reusable_workflows/**/*.yml',
1010
'include:.github/reusable_workflows/**/*.yaml',
1111
'include:**/action.yml',
12-
'include:**/action.yaml'
12+
'include:**/action.yaml',
13+
'include:**/actions.lock'
1314
)
1415

1516
if ($null -ne $env:LGTM_INDEX_FILTERS) {

actions/extractor/tools/autobuild.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include:.github/reusable_workflows/**/*.yml
1414
include:.github/reusable_workflows/**/*.yaml
1515
include:**/action.yml
1616
include:**/action.yaml
17+
include:**/actions.lock
1718
END
1819
)
1920

actions/extractor/tools/baseline-config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
".github/reusable_workflows/**/*.yml",
66
".github/reusable_workflows/**/*.yaml",
77
"**/action.yml",
8-
"**/action.yaml"
8+
"**/action.yaml",
9+
"**/actions.lock"
910
]
1011
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import codeql.actions.Lock
2+
3+
from ActionsLock lock
4+
select lock.getFile()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: codeql/actions-lock-integration-test
2+
dependencies:
3+
codeql/actions-all: "*"
4+
warnOnImplicitThis: true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
on: push
2+
jobs:
3+
test:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- run: echo test
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.2'
5+
workflows:
6+
'.github/workflows/test.yml':
7+
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
8+
- 'github/codeql-action@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28'
9+
dependencies:
10+
'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1':
11+
ref: '3d3c42e5aac5ba805825da76410c181273ba90b1'
12+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
13+
owner_id: 44036562
14+
repo_id: 197814629
15+
'github/codeql-action@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28':
16+
ref: 'v4.37.8'
17+
commit: 'sha1-db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28'
18+
owner_id: 9919
19+
repo_id: 259445878
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def test_actions_lock(codeql, actions, javascript):
2+
codeql.database.create(source_root="src", language="actions")
3+
output = codeql.query.run("query/actions.ql", database="test-db", _capture=True)
4+
assert "actions.lock" in output

actions/ql/lib/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 0.6.1
2+
3+
### New Features
4+
5+
* GitHub Actions databases now extract `actions.lock` files. The new `ActionsLock` class
6+
provides access to their YAML abstract syntax trees.
7+
8+
### Minor Analysis Improvements
9+
10+
* Checks on author association fields read from the event payload (e.g. `github.event.pull_request.author_association`) now only count as protection for events whose payload actually populates that field. Previously, a condition such as `github.event.pull_request.author_association != 'NONE'` on a workflow triggered by `issues` events was treated as a protective check even though `github.event.pull_request` is not populated for `issues` events, which makes the condition vacuous. This change may result in more alerts for queries using the `ControlCheck` class.
11+
112
## 0.6.0
213

314
### Breaking Changes

0 commit comments

Comments
 (0)