Skip to content

Commit 6e89bb1

Browse files
committed
Upgrade CodeQL - ensure minimal changes to qlpacks.yml
Ensure the qlpack.yml files are written out in the same order they were read.
1 parent 8bd60fb commit 6e89bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/upgrade-codeql-dependencies/upgrade-codeql-dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def main(cli_version : str, github_token: str) -> None:
7575
if "codeql/cpp-all" in qlpack["dependencies"]:
7676
qlpack["dependencies"]["codeql/cpp-all"] = compatible_stdlib_version
7777
with qlpack_file.open("w") as f:
78-
yaml.safe_dump(qlpack, f)
78+
yaml.safe_dump(qlpack, f, sort_keys=False)
7979
updated_qlpacks.append(qlpack_file.parent)
8080

8181
# Call CodeQL to update the lock files by running codeql pack upgrade

0 commit comments

Comments
 (0)