{"id":20463218,"url":"https://github.com/devwithkrishna/github-automation-to-fetch-remaining-github-runner-time","last_synced_at":"2025-03-05T11:50:33.909Z","repository":{"id":238117940,"uuid":"795921385","full_name":"devwithkrishna/github-automation-to-fetch-remaining-github-runner-time","owner":"devwithkrishna","description":"An automation to pull github free runner time remaining for my account and mail it to admins weekly","archived":false,"fork":false,"pushed_at":"2024-07-07T08:48:04.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-16T00:55:54.067Z","etag":null,"topics":["github","github-billing","github-runner","github-workflow","multiple-email-attachment","python","sendgrid"],"latest_commit_sha":null,"homepage":"https://github.com/devwithkrishna/github-automation-to-fetch-remaining-github-runne-time","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devwithkrishna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-04T11:59:18.000Z","updated_at":"2024-07-07T08:48:00.000Z","dependencies_parsed_at":"2025-01-16T00:48:38.779Z","dependency_job_id":"0950852a-2606-4cd6-8a92-90e6702392a1","html_url":"https://github.com/devwithkrishna/github-automation-to-fetch-remaining-github-runner-time","commit_stats":null,"previous_names":["devwithkrishna/github-automation-to-fetch-remaining-github-runne-time"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devwithkrishna","download_url":"https://codeload.github.com/devwithkrishna/github-automation-to-fetch-remaining-github-runner-time/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023192,"owners_count":20059297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","github-billing","github-runner","github-workflow","multiple-email-attachment","python","sendgrid"],"created_at":"2024-11-15T13:09:55.507Z","updated_at":"2025-03-05T11:50:33.887Z","avatar_url":"https://github.com/devwithkrishna.png","language":"Python","readme":"# github-automation-to-fetch-remaining-github-runne-time\nAn automation to pull github free runner time remaining for my account and mail it to admins weekly\n\n## Reference\n[get-github-actions-billing-for-an-organization](https://docs.github.com/en/rest/billing/billing?apiVersion=2022-11-28#get-github-actions-billing-for-an-organization)\n\n# What does this repo do\n\n```\nThis repo uses github rest api to pull billing details for github org and user account. this iswritten to json files.\nLater these json files are dropped as an email using sendgrid to ownerof account. Email consists of multiple json atachments\n```\n\n# Credentials used for authorization\n\n| credential                         | purpose                                                                | check              |\n|------------------------------------|------------------------------------------------------------------------|--------------------|\n| fine grained personal access token | this is used for all purpose like listing repos, github app detailsetc | :heavy_check_mark: |\n| personal access token classic | this is used for api call to add repos to github app                   | :heavy_check_mark: |\n| sendgrid api key | this is used for amiling purpose to auth with user account | :heavy_check_mark: |\n\n\n# SendGrid \n\n```\nSendGrid is a cloud-based service that provides email delivery and management for businesses. Sendgrid is used to send email\nusing its python SDK - sendgrids\n```\n\n# parameters \n\n| input name      | type | description                                            | required |\n|-----------------|------|--------------------------------------------------------|----------|\n| organization    | string | Github organizarion name. Default - `devwithkrishna`   | :heavy_check_mark: |\n| account_name    | string | GitHub account name. Default - `githubofkrishnadhas`   | :heavy_check_mark: |\n\n# Files\n* send_email.py --\u003e sends a single file attachment with email\n* send_email_using_sendgrid.py --\u003e sends multiple json files in a single email.\n* github_billing.py --\u003e this will pull billing details using github rest api\n* email_template.html --\u003e email html template","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fgithub-automation-to-fetch-remaining-github-runner-time/lists"}