Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnaneKhan committed Apr 25, 2024
1 parent 1307650 commit 5498677
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gato/enumerate/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,15 @@ def __perform_yml_enumeration(self, repository: Repository):

if wf_injection and not skip_checks and not rules:
injection_package = self.__create_info_package(parsed_yml.wf_name,workflow_url, wf_injection, rules)
commit_date, author = self.api.get_file_last_updated(repository.name, ".github/workflows/" + parsed_yml.wf_name)
repository.set_injection(injection_package)
if self.is_within_last_day(commit_date) and '[bot]' not in author:
send_slack_webhook(injection_package)
if pwn_reqs and not skip_checks:

pwn_request_package = self.__create_info_package(parsed_yml.wf_name,workflow_url, pwn_reqs, rules)
commit_date, author = self.api.get_file_last_updated(repository.name, ".github/workflows/" + parsed_yml.wf_name)
print(commit_date)

if self.is_within_last_day(commit_date) and '[bot]' not in author:
send_slack_webhook(pwn_request_package)
repository.set_pwn_request(pwn_request_package)
Expand Down

0 comments on commit 5498677

Please sign in to comment.