-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean get_repos() #5
base: dev
Are you sure you want to change the base?
Conversation
- Use inline function endpoint() - Avoid helper variable "page"
- Use new variable page in while condition - Rename repo_list to all_repos - Rename result to repos - Add comments
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
2769913 | Triggered | Generic High Entropy Secret | e1b4331 | _pkgdown.yml | View secret |
2769913 | Triggered | Generic High Entropy Secret | e1b4331 | _pkgdown.yml | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
- add "section lines" for each function - improve indentation and spacing
The functions were copied to separate files!
- change order of commands in order to prolong the pipe - remove column renaming without effect (image_url -> badge_url) - rename result variable to "result"
- use inline expressions instead of helper variables - rename "tmp" to "git_repos"
Extract - get_github_repos_impl() - github_endpoint() - github_repo_object_to_data_row()
Also remove non used arguments and argument defaults
and remove compose_url_opencpu() in favour of compose_url_githubusercontent()
and use the "unset" argument of Sys.getenv()
I did some major cleaning:
compose_url_*()
functionget*_token()
functionimage_link()
named_link()
html_img()
html_a()
get_repo_infos()
was refactored: d636624I also added new functions:
list_files_in_github_repo()
: List the files in a GitHub repositoryget_names_of_r_packages_on_github()
: What repositories represent (public/private) R packages?make_github_package_db()
Create package database from GitHub packagesThis change is