Skip to content

Commit 5fb45c8

Browse files
committed
Revert "Merge pull request #251 from microsoft/jb1/upstream-zipslip"
This reverts commit 4dfa5d2, reversing changes made to 8cd58aa.
1 parent 4dfa5d2 commit 5fb45c8

File tree

4,625 files changed

+108149
-338720
lines changed

Some content is hidden

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

4,625 files changed

+108149
-338720
lines changed

.github/copilot-instructions.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/check-change-note.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- "shared/**/*.qll"
1717
- "!**/experimental/**"
1818
- "!ql/**"
19+
- "!rust/**"
1920
- ".github/workflows/check-change-note.yml"
2021

2122
jobs:

.github/workflows/check-overlay-annotations.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.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/python-tooling.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ql-for-ql-dataset_measure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Create database
5454
run: |
5555
"${CODEQL}" database create \
56-
--search-path "${{ github.workspace }}" \
56+
--search-path "${{ github.workspace }}"
5757
--threads 4 \
5858
--language ql --source-root "${{ github.workspace }}/repo" \
5959
"${{ runner.temp }}/database"

.pre-commit-config.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3-
default_language_version:
4-
python: python3.12
53
repos:
64
- repo: https://github.com/pre-commit/pre-commit-hooks
75
rev: v3.2.0
86
hooks:
97
- id: trailing-whitespace
108
exclude: /test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
119
- id: end-of-file-fixer
12-
exclude: Cargo.lock$|/test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
10+
exclude: /test/.*$(?<!\.qlref)|.*\.patch$|.*\.qll?$
1311

1412
- repo: https://github.com/pre-commit/mirrors-clang-format
1513
rev: v17.0.6
1614
hooks:
1715
- id: clang-format
1816

19-
- repo: https://github.com/psf/black
20-
rev: 25.1.0
17+
- repo: https://github.com/pre-commit/mirrors-autopep8
18+
rev: v2.0.4
2119
hooks:
22-
- id: black
23-
files: ^(misc/codegen/.*|misc/scripts/models-as-data/.*)\.py$
20+
- id: autopep8
21+
files: ^misc/codegen/.*\.py
2422

2523
- repo: local
2624
hooks:

0 commit comments

Comments
 (0)