{"id":21195736,"url":"https://github.com/tatamiya/gcp-cost-notification","last_synced_at":"2026-04-15T07:35:36.162Z","repository":{"id":57624538,"uuid":"363909523","full_name":"tatamiya/gcp-cost-notification","owner":"tatamiya","description":"Daily notification of GCP costs to Slack","archived":false,"fork":false,"pushed_at":"2021-09-03T12:35:40.000Z","size":224,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-18T13:57:43.631Z","etag":null,"topics":["gcp","gcp-cloud-functions","slack"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tatamiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-03T11:38:26.000Z","updated_at":"2025-09-02T08:16:54.000Z","dependencies_parsed_at":"2022-08-26T22:21:16.408Z","dependency_job_id":null,"html_url":"https://github.com/tatamiya/gcp-cost-notification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tatamiya/gcp-cost-notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatamiya%2Fgcp-cost-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatamiya%2Fgcp-cost-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatamiya%2Fgcp-cost-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatamiya%2Fgcp-cost-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tatamiya","download_url":"https://codeload.github.com/tatamiya/gcp-cost-notification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatamiya%2Fgcp-cost-notification/sbom","scorecard":{"id":869439,"data":{"date":"2025-08-11","repo":{"name":"github.com/tatamiya/gcp-cost-notification","commit":"b940eee8a9b80bfa044d549468de9c0a0bb0482e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T03:41:57.064Z","repository_id":57624538,"created_at":"2025-08-24T03:41:57.064Z","updated_at":"2025-08-24T03:41:57.064Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31831847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gcp","gcp-cloud-functions","slack"],"created_at":"2024-11-20T19:30:31.262Z","updated_at":"2026-04-15T07:35:36.139Z","avatar_url":"https://github.com/tatamiya.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-cost-notification\n\nSend notification to Slack on GCP costs.\n\n![](images/architecture.png)\n\n![](images/sample_image.png)\n\n\nThis system uses\n\n- Cloud Billing\n- BigQuery\n- Cloud Scheduler\n- Pub/Sub\n- Google Cloud Functions\n- Slack API\n\n## Prerequisites\n\n- [Export Cloud Billing data to BigQuery](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-setup)\n- [Create Pub/Sub topic](https://cloud.google.com/pubsub/docs/quickstart-console)\n- [Set Cloud Scheduler](https://cloud.google.com/scheduler/docs/quickstart)\n- [Make Slack app and get Incoming Webhook URI](https://api.slack.com/messaging/webhooks)\n\n## Enviroment Variables\n\nEnviroment variables to use in GCF runtime are set in `env.yaml` file.\n\n(sample)\n```yaml\nGCP_PROJECT: \u003cyour GCP poject-id\u003e\nDATASET_NAME: \u003cBQ dataset name\u003e\nTABLE_NAME: \u003cBQ table name\u003e\nSLACK_WEBHOOK_URL: \u003cslack webhook url\u003e\nFILE_DIRECTORY: \"serverless_function_source_code/\" # this should be fixed\nTIMEZONE: \u003cYour TimeZone. e.g. Asia/Tokyo\u003e\n```\n\n## Test Commands\n\nBefore executing test commands, environment variables must be set in `.env` file.\n\n### Unit Tests (short mode)\n\nExecute unit tests which have no interaction with outer services (BigQuery and Slack).\n\n```sh\nmake test\n```\n\n### All Tests (including BigQuery and Slack communication)\n\n```sh\nmake test-all\n```\n\n### Local Runner\n\nRun the whole process from your local environment.\n\n```sh\nmake local-run\n```\n\n## Deploy Command\n\nSet `REGION` and `TRIGGER_TOPIC` variables in Makefile and execute this command:\n\n```sh\nmake deploy\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatamiya%2Fgcp-cost-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftatamiya%2Fgcp-cost-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatamiya%2Fgcp-cost-notification/lists"}