Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnaneKhan committed Apr 21, 2024
1 parent 9ea7d6e commit 5859a49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gato/enumerate/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ def __check_callees(self, parsed_yml, repository: Repository, env_rules):
callee_wf = CacheManager().get_workflow(repository.name, callee)
if not callee_wf:
callee_wf = self.api.retrieve_workflow_yml(repository.name, callee)
callee_wf = WorkflowParser(callee_wf.workflow_contents, repository.name, callee)
self.temp_wf_cache.update({callee_wf.wf_name : callee_wf})

if callee_wf:
callee_wf = WorkflowParser(callee_wf.workflow_contents, repository.name, callee)
self.temp_wf_cache.update({callee_wf.wf_name : callee_wf})

if callee_wf:
sub_injection = callee_wf.check_injection(bypass=True)
Expand All @@ -114,6 +116,7 @@ def __perform_yml_enumeration(self, repository: Repository):
list: List of workflows that execute on sh runner, empty otherwise.
"""
runner_wfs = []
self.temp_wf_cache.clear()

if CacheManager().is_repo_cached(repository.name):
ymls = CacheManager().get_workflows(repository.name)
Expand Down

0 comments on commit 5859a49

Please sign in to comment.