From 25da84f0db1030523a24cc331695996c049cee6c Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Tue, 11 Feb 2025 21:37:05 -0800 Subject: [PATCH] Don't verify repo creds --- .github/workflows/build_windows_packages.yml | 2 +- build_tools/fetch_sources.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_windows_packages.yml b/.github/workflows/build_windows_packages.yml index 0d8d3de..e5d7f63 100644 --- a/.github/workflows/build_windows_packages.yml +++ b/.github/workflows/build_windows_packages.yml @@ -40,7 +40,7 @@ jobs: run: | git config --global user.email "nobody@amd.com" git config --global user.name "Nobody" - python ./build_tools/fetch_sources.py --depth 1 + python ./build_tools/fetch_sources.py --depth 1 --no-repo-verify - name: List files (symlinks?) run: ls -la base/ diff --git a/build_tools/fetch_sources.py b/build_tools/fetch_sources.py index 920ced6..50d215e 100755 --- a/build_tools/fetch_sources.py +++ b/build_tools/fetch_sources.py @@ -65,6 +65,7 @@ def run(args): str(repo_tool_path), "init", "-v", + if not args.repo_verify: "--no-repo-verify" else "", "-u", args.manifest_url, "-m", @@ -129,6 +130,13 @@ def populate_submodules_if_exists(git_dir: Path): def main(argv): parser = argparse.ArgumentParser(prog="fetch_sources") + parser.add_option( + "--no-repo-verify", + dest="repo_verify", + default=True, + action="store_false", + help="do not verify repo source code", + ) parser.add_argument( "--dir", type=Path, help="Repo dir", default=DEFAULT_SOURCES_DIR )