-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20,121 changed files
with
1,577,373 additions
and
708,625 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,35 @@ | ||
common --enable_platform_specific_config | ||
# because we use --override_module with `%workspace%`, the lock file is not stable | ||
common --lockfile_mode=off | ||
|
||
# when building from this repository in isolation, the internal repository will not be found at .. | ||
# where `MODULE.bazel` looks for it. The following will get us past the module loading phase, so | ||
# that we can build things that do not rely on that | ||
common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub | ||
|
||
build --repo_env=CC=clang --repo_env=CXX=clang++ | ||
|
||
build:linux --cxxopt=-std=c++20 | ||
build:macos --cxxopt=-std=c++20 --cpu=darwin_x86_64 | ||
build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor | ||
# we use transitions that break builds of `...`, so for `test` to work with that we need the following | ||
test --build_tests_only | ||
|
||
# this requires developer mode, but is required to have pack installer functioning | ||
startup --windows_enable_symlinks | ||
common --enable_runfiles | ||
|
||
# with the above, we can avoid building python zips which is the default on windows as that's expensive | ||
build --nobuild_python_zip | ||
|
||
common --registry=file:///%workspace%/misc/bazel/registry | ||
common --registry=https://bcr.bazel.build | ||
|
||
common --@rules_dotnet//dotnet/settings:strict_deps=false | ||
|
||
# Reduce this eventually to empty, once we've fixed all our usages of java, and https://github.com/bazel-contrib/rules_go/issues/4193 is fixed | ||
common --incompatible_autoload_externally="+@rules_java,+@rules_shell" | ||
|
||
build --java_language_version=17 | ||
build --tool_java_language_version=17 | ||
build --tool_java_runtime_version=remotejdk_17 | ||
build --java_runtime_version=remotejdk_17 | ||
|
||
try-import %workspace%/local.bazelrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# this file should contain bazel settings required to build things from `semmle-code` | ||
|
||
common --registry=file:///%workspace%/ql/misc/bazel/registry | ||
common --registry=https://bcr.bazel.build | ||
|
||
# See bazelbuild/rules_dotnet#413: strict_deps in C# also appliy to 3rd-party deps, and when we pull | ||
# in (for example) the xunit package, there's no code in this at all, it just depends transitively on | ||
# its implementation packages without providing any code itself. | ||
# We either can depend on internal implementation details, or turn of strict deps. | ||
common --@rules_dotnet//dotnet/settings:strict_deps=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.3.1 | ||
8.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DisableFormat: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### Pull Request checklist | ||
|
||
#### All query authors | ||
|
||
- [ ] A change note is added if necessary. See [the documentation](https://github.com/github/codeql/blob/main/docs/change-notes.md) in this repository. | ||
- [ ] All new queries have appropriate `.qhelp`. See [the documentation](https://github.com/github/codeql/blob/main/docs/query-help-style-guide.md) in this repository. | ||
- [ ] QL tests are added if necessary. See [Testing custom queries](https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/testing-custom-queries) in the GitHub documentation. | ||
- [ ] New and changed queries have correct query metadata. See [the documentation](https://github.com/github/codeql/blob/main/docs/query-metadata-style-guide.md) in this repository. | ||
|
||
#### Internal query authors only | ||
|
||
- [ ] Autofixes generated based on these changes are valid, only needed if this PR makes significant changes to `.ql`, `.qll`, or `.qhelp` files. See [the documentation](https://github.com/github/codeql-team/blob/main/docs/best-practices/validating-autofix-for-query-changes.md) (internal access required). | ||
- [ ] Changes are validated [at scale](https://github.com/github/codeql-dca/) (internal access required). | ||
- [ ] Adding a new query? Consider also [adding the query to autofix](https://github.com/github/codeml-autofix/blob/main/docs/updating-query-support.md#adding-a-new-query-to-the-query-suite). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build runzip | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ripunzip-version: | ||
description: "what reference to checktout from google/runzip" | ||
required: false | ||
default: v1.2.1 | ||
openssl-version: | ||
description: "what reference to checkout from openssl/openssl for Linux" | ||
required: false | ||
default: openssl-3.3.0 | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, macos-13, windows-2019] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: google/ripunzip | ||
ref: ${{ inputs.ripunzip-version }} | ||
# we need to avoid ripunzip dynamically linking into libssl | ||
# see https://github.com/sfackler/rust-openssl/issues/183 | ||
- if: runner.os == 'Linux' | ||
name: checkout openssl | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: openssl/openssl | ||
path: openssl | ||
ref: ${{ inputs.openssl-version }} | ||
- if: runner.os == 'Linux' | ||
name: build and install openssl with fPIC | ||
shell: bash | ||
working-directory: openssl | ||
run: | | ||
./config -fPIC --prefix=$HOME/.local --openssldir=$HOME/.local/ssl | ||
make -j $(nproc) | ||
make install_sw -j $(nproc) | ||
- if: runner.os == 'Linux' | ||
name: build (linux) | ||
shell: bash | ||
run: | | ||
env OPENSSL_LIB_DIR=$HOME/.local/lib64 OPENSSL_INCLUDE_DIR=$HOME/.local/include OPENSSL_STATIC=yes cargo build --release | ||
mv target/release/ripunzip ripunzip-linux | ||
- if: runner.os == 'Windows' | ||
name: build (windows) | ||
shell: bash | ||
run: | | ||
cargo build --release | ||
mv target/release/ripunzip ripunzip-windows | ||
- name: build (macOS) | ||
if: runner.os == 'macOS' | ||
shell: bash | ||
run: | | ||
rustup target install x86_64-apple-darwin | ||
rustup target install aarch64-apple-darwin | ||
cargo build --target x86_64-apple-darwin --release | ||
cargo build --target aarch64-apple-darwin --release | ||
lipo -create -output ripunzip-macos \ | ||
-arch x86_64 target/x86_64-apple-darwin/release/ripunzip \ | ||
-arch arm64 target/aarch64-apple-darwin/release/ripunzip | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ripunzip-${{ runner.os }} | ||
path: ripunzip-* | ||
- name: Check built binary | ||
shell: bash | ||
run: | | ||
./ripunzip-* --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Check bazel formatting | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "**.bazel" | ||
- "**.bzl" | ||
branches: | ||
- main | ||
- "rc/*" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Check bazel formatting | ||
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 | ||
with: | ||
extra_args: > | ||
buildifier --all-files 2>&1 || | ||
( | ||
echo -e "In order to format all bazel files, please run:\n bazel run //misc/bazel/buildifier"; exit 1 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
- main | ||
- "rc/*" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,9 @@ on: | |
- main | ||
- "rc/*" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
qldoc: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,9 @@ on: | |
- "rc/*" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
check: | ||
name: Check query IDs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.