Skip to content

Commit 4b3c612

Browse files
authored
Merge branch 'main' into dilan/publish-opensource-packs
2 parents c39c091 + d3c6c3b commit 4b3c612

File tree

6,322 files changed

+340891
-104961
lines changed

Some content is hidden

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

6,322 files changed

+340891
-104961
lines changed

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
1212

1313
build --repo_env=CC=clang --repo_env=CXX=clang++
1414

15+
# print test output, like sembuild does.
16+
# Set to `errors` if this is too verbose.
17+
test --test_output all
1518
# we use transitions that break builds of `...`, so for `test` to work with that we need the following
1619
test --build_tests_only
1720

@@ -34,5 +37,6 @@ build --java_language_version=17
3437
build --tool_java_language_version=17
3538
build --tool_java_runtime_version=remotejdk_17
3639
build --java_runtime_version=remotejdk_17
40+
build --@rules_python//python/config_settings:python_version=3.12
3741

3842
try-import %workspace%/local.bazelrc

.bazelrc.internal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ common --registry=https://bcr.bazel.build
88
# its implementation packages without providing any code itself.
99
# We either can depend on internal implementation details, or turn of strict deps.
1010
common --@rules_dotnet//dotnet/settings:strict_deps=false
11+
12+
build --@rules_python//python/config_settings:python_version=3.12

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.0.0
1+
8.1.1

.devcontainer/Dockerfile.codespaces

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
2+
3+
USER root
4+
# Install needed packages according to https://codeql.github.com/docs/codeql-overview/system-requirements/
5+
# most come from the base image, but we need to install some additional ones
6+
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y sudo man-db python3.12 npm unminimize
7+
RUN yes | unminimize

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
32
"extensions": [
43
"rust-lang.rust-analyzer",
54
"bungcip.better-toml",
@@ -8,6 +7,10 @@
87
"ms-vscode.test-adapter-converter",
98
"slevesque.vscode-zipexplorer"
109
],
10+
"build": {
11+
// Path is relative to the devcontainer.json file.
12+
"dockerfile": "Dockerfile.codespaces"
13+
},
1114
"settings": {
1215
"files.watcherExclude": {
1316
"**/target/**": true

.github/codeql/codeql-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ queries:
44
- uses: security-and-quality
55

66
paths-ignore:
7+
- '/actions/ql/test'
78
- '/cpp/'
89
- '/java/'
910
- '/python/'
1011
- '/javascript/ql/test'
12+
- '/javascript/ql/integration-tests'
1113
- '/javascript/extractor/tests'
14+
- '/javascript/extractor/parser-tests'
15+
- '/javascript/ql/src/'
1216
- '/rust/ql'

.github/workflows/build-ripunzip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-20.04, macos-13, windows-2019]
20+
os: [ubuntu-22.04, macos-13, windows-2019]
2121
runs-on: ${{ matrix.os }}
2222
steps:
2323
- uses: actions/checkout@v4

.github/workflows/codegen.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Codegen
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "misc/bazel/**"
7+
- "misc/codegen/**"
8+
- "*.bazel*"
9+
- .github/workflows/codegen.yml
10+
- .pre-commit-config.yaml
11+
branches:
12+
- main
13+
- rc/*
14+
- codeql-cli-*
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
codegen:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-python@v4
25+
with:
26+
python-version-file: 'misc/codegen/.python-version'
27+
- uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507
28+
name: Check that python code is properly formatted
29+
with:
30+
extra_args: autopep8 --all-files
31+
- name: Run codegen tests
32+
shell: bash
33+
run: |
34+
bazel test //misc/codegen/...

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818

1919
jobs:
2020
CodeQL-Build:
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: ['actions', 'csharp']
2125

2226
runs-on: ubuntu-latest
2327

@@ -38,9 +42,8 @@ jobs:
3842
# Initializes the CodeQL tools for scanning.
3943
- name: Initialize CodeQL
4044
uses: github/codeql-action/init@main
41-
# Override language selection by uncommenting this and choosing your languages
4245
with:
43-
languages: csharp
46+
languages: ${{ matrix.language }}
4447
config-file: ./.github/codeql/codeql-config.yml
4548

4649
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).

.github/workflows/go-tests-other-os.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
paths:
55
- "go/**"
6+
- "!go/documentation/**"
67
- "!go/ql/**" # don't run other-os if only ql/ files changed
78
- .github/workflows/go-tests-other-os.yml
89
- .github/actions/**

0 commit comments

Comments
 (0)