{"id":18783958,"url":"https://github.com/sparkpost/github-alerts-to-slack","last_synced_at":"2025-04-13T12:27:20.954Z","repository":{"id":38424655,"uuid":"271625909","full_name":"SparkPost/github-alerts-to-slack","owner":"SparkPost","description":"Sends a report of Github security alerts to Slack","archived":false,"fork":false,"pushed_at":"2023-07-13T13:25:25.000Z","size":353,"stargazers_count":12,"open_issues_count":10,"forks_count":2,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-13T12:27:16.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/SparkPost.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-11T19:02:21.000Z","updated_at":"2025-02-11T14:36:51.000Z","dependencies_parsed_at":"2024-11-07T20:44:00.732Z","dependency_job_id":"4cd339ae-1f8f-43c6-9409-3a93a89f2ee5","html_url":"https://github.com/SparkPost/github-alerts-to-slack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fgithub-alerts-to-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fgithub-alerts-to-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fgithub-alerts-to-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SparkPost%2Fgithub-alerts-to-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SparkPost","download_url":"https://codeload.github.com/SparkPost/github-alerts-to-slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248713405,"owners_count":21149678,"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":[],"created_at":"2024-11-07T20:41:28.291Z","updated_at":"2025-04-13T12:27:20.931Z","avatar_url":"https://github.com/SparkPost.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Alerts to Slack\n\nThis script is designed to alert on Dependabot and CodeQL vulnerability alerts found in a list of GitHub repositories. Currently, GitHub does not offer vulnerability reporting across an organization. This script is designed to be a quick way to list any open issues in a single spot.\n\n## Prerequisites\n\nYou will need the following:\n\n- [GitHub access token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)\n- [Slack incoming webhook](https://api.slack.com/messaging/webhooks)\n- a list of GitHub repos with [security alerts enabled](https://help.github.com/en/github/managing-security-vulnerabilities/about-security-alerts-for-vulnerable-dependencies)\n- Node 10.x or better\n\n## How to run\n\nFirst, install your dependencies\n\n```\nnpm install\n```\n\nTo test out a dry run:\n\n```\n GITHUB_TOKEN=redacted GITHUB_QUERY=\"org:SparkPost archived:false\" node index.js\n```\n\nTo run and post to a Slack channel:\n\n```\nGITHUB_TOKEN=redacted SLACK_WEBHOOK=redacted POST_TO_SLACK=true GITHUB_QUERY=\"org:SparkPost archived:false\" node index.js\n```\n\n## Notes\n\n- This report includes:\n  - Dependabot alerts with \"critical\" or \"high\" severity\n  - CodeQL secret scanning alerts and code alerts with \"error\" or \"warning\" severity\n  - excludes dismissed alerts\n- This report limits to the first 50 repositories found, and first 50 alerts found.\n- This app is deployed on Heroku, name `vulnerability-alerter`. Creditionals are located in 1Password.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Fgithub-alerts-to-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparkpost%2Fgithub-alerts-to-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparkpost%2Fgithub-alerts-to-slack/lists"}