File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,25 @@ concurrency:
1919 cancel-in-progress : true
2020
2121jobs :
22+ ensure_submodule_sanity :
23+ name : Make sure we're not building with a fork
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout DuckDB Python
27+ uses : actions/checkout@v4
28+
29+ - shell : bash
30+ run : |
31+ submodule_url=$(git config --file .gitmodules --get submodule.external/duckdb.url || true)
32+ expected="github.com/duckdb/duckdb"
33+ if [[ -z "$submodule_url" ]]; then
34+ echo "::error::DuckDB submodule not found in .gitmodules"
35+ exit 1
36+ fi
37+ if [[ "$submodule_url" != *"$expected"* ]]; then
38+ echo "::error::DuckDB submodule must point to $expected, found: $submodule_url"
39+ exit 1
40+ fi
2241
2342 packaging_test :
2443 name : Build a minimal set of packages and run all tests on them
You can’t perform that action at this time.
0 commit comments