Skip to content

Commit 66e3fc6

Browse files
safe_load doesn't have a loader
1 parent 7fef7c5 commit 66e3fc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gha_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def list_full_paths(path: str) -> set[str]:
162162

163163
def get_workflow_action_names(self, repo_name: str, workflow_path: str) -> Set[str]:
164164
workflow_content = self._get_workflow_file_content(repo_name, workflow_path)
165-
workflow = yaml.safe_load(workflow_content, Loader=yaml.CLoader)
165+
workflow = yaml.safe_load(workflow_content)
166166
res = set()
167167
for job in workflow.get("jobs", dict()).values():
168168
for step in job.get("steps", list()):
@@ -207,7 +207,7 @@ def get_repo_workflow_names(self, repo_name: str) -> Dict[str, str]:
207207
for path in workflow_paths:
208208
try:
209209
content = self._get_workflow_file_content(repo_name, path)
210-
yaml_content = yaml.safe_load(content, Loader=yaml.CLoader)
210+
yaml_content = yaml.safe_load(content)
211211
res[path] = yaml_content.get("name", path)
212212
except FileNotFoundError as ex:
213213
logging.warning(ex)

0 commit comments

Comments
 (0)