You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commits_message=f", first one at {oldest_commit} and last one at {commits[0]['commit']['author']['date']}."
133
+
gx_output.c_log(f'Made (to this repo) {len(commits)} commits{commits_message}', rtype="commits")
125
134
126
135
signed_commits= []
127
136
failed_verifications= []
128
137
signature_attributes= []
129
-
dates_mismatch_commits= []
138
+
dates_mismatch_commits_account= []
139
+
dates_mismatch_commits_repository= []
130
140
commit_times=defaultdict(int)
131
141
gx_output.stdout(f"\r[{c_users_index}/{len(c_users)}] Analyzing {len(commits)} commits and any signing keys for {contributor.get('login')}"+' '*40, end='', flush=True)
# Let's group by commit hour, we may have an insight here.
180
193
commit_times[commit_date.hour] +=1
181
194
182
-
iflen(dates_mismatch_commits) >0:
183
-
gx_output.c_log(f"WARNING: UNRELIABLE DATES (Older than Account) in {len(dates_mismatch_commits)} commits by [{contributor_login}]. Potential tampering, account re-use, or Rebase. List at: {repository.get('html_url')}/commits/?author={contributor_login}&until={contributor.get('created_at')}", rtype="commits")
195
+
iflen(dates_mismatch_commits_account) >0:
196
+
gx_output.c_log(f"WARNING: UNRELIABLE COMMIT DATES (Older than Account, which was created on {contributor.get('created_at')}) in {len(dates_mismatch_commits_account)} commits by [{contributor_login}]. Potential tampering, account re-use, or Rebase. List at: {repository.get('html_url')}/commits/?author={contributor_login}&until={contributor.get('created_at')}", rtype="commits")
184
197
gx_output.c_log(f"View commits with unreliable DATES here: {repository.get('html_url')}/commits/?author={contributor_login}&until={contributor.get('created_at')}", rtype="commits")
gx_output.c_log(f"WARNING: UNRELIABLE COMMIT DATES (Older than Repository, which was created on {repository.get('created_at')}) in {len(dates_mismatch_commits_repository)} commits by [{contributor_login}]. Potential tampering, account re-use, or Rebase. List at: {repository.get('html_url')}/commits/?author={contributor_login}&until={contributor.get('created_at')}", rtype="commits")
gx_output.c_log(f"The user submitted {details['submitted']} Pull Requests out of which {details['open']} remain open.", rtype="profiling", contributor=user)
482
482
483
483
# Check if there were any users with mismatches in commits dates in the repository.
gx_output.r_log(f"WARNING: UNRELIABLE DATES (Older than Account) in {dates_mismatch_commits} commits by [{user}]. Potential tampering, account re-use, or Rebase.", rtype="commits")
gx_output.r_log(f"UNRELIABLE COMMIT DATES in {dates_mismatch_commits} commits by [{user}]. They are dated earlier than the account creation time. Potential tampering, account re-use, or Rebase.", rtype="commits")
gx_output.r_log(f"UNRELIABLE COMMIT DATES in {dates_mismatch_commits} commits by [{user}]. They are dated earlier than the repository creation time. Potential tampering, account re-use, or Rebase.", rtype="commits")
0 commit comments