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
Improved temporary output displayed while analyzing a Repository
Added inspection of branches, tags, environments and artifacts
Replicating some of the contributor-specific "releases" findings under the contributor too for visibility
Added count of Stars to the repository profiling section
Also showing under repository a summary on the amount of unreliable commits identified due to potentially erroneous dates
gx_output.r_log(f"{artifacts.get('total_count')} Artifacts available at: [{repository.get('url')}/actions/artifacts]", rtype="urls")
48
+
forartifactinartifacts.get('artifacts'):
49
+
# There are normally multiple artifacts hence we keep them under verbose.
50
+
gx_output.r_log(f"Artifact [{artifact.get('name')}] created [{artifact.get('created_at')}], updated [{artifact.get('updated_at')}]: {artifact.get('url')}", rtype="v_artifacts")
51
+
created_at=artifact.get('created_at')
52
+
created_at_ts=gh_time.parse_date(created_at)
53
+
updated_at=artifact.get('updated_at')
54
+
updated_at_ts=gh_time.parse_date(updated_at)
55
+
# This shouldn't happen but we still run a check; artifacts can't be updated but instead completely overwritten
56
+
# More data here: https://github.com/actions/upload-artifact#overwriting-an-artifact
57
+
if (updated_at_ts-created_at_ts).days>0:
58
+
gx_output.r_log(f"An artifact [{artifact.get('name')}] was updated {(updated_at_ts-created_at_ts).days} days after being created: {artifact.get('url')}", rtype="artifacts")
gx_output.r_log(f"An asset in Release [{release.get('name')}] by [{uploaded_by}] was updated {(updated_at_ts-created_at_ts).days} days after its release: {asset.get('url')}", rtype="releases")
123
+
gx_output.r_log(f"WARNING: An asset in Release [{release.get('name')}] by [{uploaded_by}] was updated {(updated_at_ts-created_at_ts).days} days after its release: {asset.get('url')}", rtype="releases")
gx_output.r_log(f"Repository is being Watched by {repository.get('subscribers_count')} Subscribers: {repository.get('subscribers_url')}", rtype="profiling")
197
+
gx_output.r_log(f"Watchers count: [{repository.get('subscribers_count')}] List at: {repository.get('subscribers_url')}", rtype="profiling")
198
+
199
+
ifrepository.get('stargazers_count') >0:
200
+
gx_output.r_log(f"Stars count: [{repository.get('stargazers_count')}] List at: {repository.get('stargazers_url')}", rtype="profiling")
127
201
128
202
ifrepository.get('open_issues_count') >0:
129
203
gx_output.r_log(f"Repository has {repository.get('open_issues_count')} Open Issues: {repository.get('html_url')}/issues", rtype="profiling")
gx_output.c_log(f"The user submitted {details['submitted']} Pull Requests out of which {details['open']} remain open.", rtype="profiling", contributor=user)
245
319
320
+
# Check if there were any users with mismatches in commits dates in the repository.
gx_output.r_log(f"WARNING: UNRELIABLE DATES in {dates_mismatch_commits} commits by Contributor [{user}]. The account is newer than the commit! Unreliable historic activity or account re-use.", rtype="commits")
323
+
324
+
246
325
""" This here next is Work in Progress - trying to figure out what to pay attention to here that makes sense.
247
326
# Get all Issues. Note from GitHub that Issues returns both Issues + PRs:
0 commit comments