Skip to content

Remove low hanging fruit usages of GithubRandomKeyAuth#404

Open
MoralCode wants to merge 11 commits into
mainfrom
fix/github-random-key-auth
Open

Remove low hanging fruit usages of GithubRandomKeyAuth#404
MoralCode wants to merge 11 commits into
mainfrom
fix/github-random-key-auth

Conversation

@MoralCode

Copy link
Copy Markdown
Contributor

Description
GithubRandomKeyAuth is a legacy, deprecated method of retrieving API keys that was replaced by keyman

Since GithubDataAccess does nothing with the value passed into it at this position (used to be for the randomkeyauth), we are able to replace any code passing values in with a no-op and follow things up the chain to clear out uses of this that exist already.

Notes for Reviewers
Not yet tested. should probably be tested to full collection to make sure things still work.

Signed commits

  • Yes, I signed my commits.

Generative AI disclosure

Please select one option:

  • This contribution was NOT assisted or created by Generative AI tools.
  • This contribution was assisted or created by Generative AI tools.

If AI tools were used, please provide details below:
- What tools were used?
- How were these tools used?
- Did you review these outputs before submitting this PR?

clones_data = []

if clones_data:
process_clones_data(clones_data, f"{owner}/{repo}: Traffic task", repo_id)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
E1120: No value for argument 'logger' in function call (no-value-for-parameter)

MoralCode added 10 commits June 25, 2026 15:45
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…hat it uses keyman

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…ssing up the tree

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…are not, our regular github API access classes

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…/search

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode force-pushed the fix/github-random-key-auth branch from 50051df to 786b098 Compare June 25, 2026 20:14
Comment thread collectoss/tasks/github/facade_github/core.py Outdated
try:
key_auth = GithubRandomKeyAuth(logger)
grab_committer_list(logger, key_auth, repo_git, tool_source, tool_version, data_source, platform)
grab_committer_list(logger, None, repo_git, tool_source, tool_version, data_source, platform)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pylint] reported by reviewdog 🐶
E0602: Undefined variable 'grab_committer_list' (undefined-variable)

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode added this to the v1.2 milestone Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant