diff options
author | aiuto <aiuto@google.com> | 2024-03-20 23:44:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 23:44:11 -0400 |
commit | 20100ce9827e886f9107cbd2758c18e90af07e69 (patch) | |
tree | e68e976ab88861645e36e4471c795be2582c59cf | |
parent | c53ff51070c96b368188f057a6683d97c31b77f7 (diff) | |
download | bazelbuild-rules_pkg-20100ce9827e886f9107cbd2758c18e90af07e69.tar.gz |
Remove expand_yml.py. (#837)
It is not used by anything and my security team is complaing about vulns.
This is the path of least resistance.
-rw-r--r-- | .bazelci/expand_yml.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/.bazelci/expand_yml.py b/.bazelci/expand_yml.py deleted file mode 100644 index 8248769..0000000 --- a/.bazelci/expand_yml.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2021 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -"""expand_yml.py - read .yml and dump as json. - -This is a debugging tool to expand a Yaml file and print the full expansion in -a more readable form. - -Usage: - python expand_ym.py [file ...] - - It no input files a provided, use tests.yml -""" - -import json -import sys -import yaml - - -def show_expanded(path): - with open(path, mode='r') as f: - yml = yaml.load(f, Loader=yaml.FullLoader) - print(json.dumps(yml, indent=2, sort_keys=True)) - - -if __name__ == '__main__': - if len(sys.argv) < 2: - show_expanded('tests.yml') - else: - for f in sys.argv[1:]: - show_expanded(f) |