{"id":28899246,"url":"https://github.com/hofiorg/dependabot-alerts","last_synced_at":"2026-07-21T14:11:30.415Z","repository":{"id":300228853,"uuid":"1005602154","full_name":"hofiorg/dependabot-alerts","owner":"hofiorg","description":"A script to fetch Dependabot alerts for all repositories of a GitHub user","archived":false,"fork":false,"pushed_at":"2025-06-21T18:50:28.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T13:00:42.958Z","etag":null,"topics":["bash","bash-script","dependabot","dependabot-alerts","script","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/hofiorg.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-20T13:47:39.000Z","updated_at":"2025-06-25T17:21:04.000Z","dependencies_parsed_at":"2025-10-18T00:20:36.660Z","dependency_job_id":"0553ba76-4111-45ce-a392-55c466f50f10","html_url":"https://github.com/hofiorg/dependabot-alerts","commit_stats":null,"previous_names":["hofiorg/dependabot-alerts"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hofiorg/dependabot-alerts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hofiorg%2Fdependabot-alerts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hofiorg%2Fdependabot-alerts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hofiorg%2Fdependabot-alerts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hofiorg%2Fdependabot-alerts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hofiorg","download_url":"https://codeload.github.com/hofiorg/dependabot-alerts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hofiorg%2Fdependabot-alerts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35726849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-21T02:00:06.728Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","bash-script","dependabot","dependabot-alerts","script","shell-script"],"created_at":"2025-06-21T08:08:47.729Z","updated_at":"2026-07-21T14:11:30.375Z","avatar_url":"https://github.com/hofiorg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dependabot-alerts\n\n[![Shell Script](https://img.shields.io/badge/Bash-Script-blue?logo=gnubash)](https://github.com/hofiorg/dependabot-alerts/blob/main/dependabot-alerts)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/hofiorg/dependabot-alerts/blob/main/LICENSE)\n[![ShellCheck](https://github.com/hofiorg/dependabot-alerts/actions/workflows/lint-bash.yml/badge.svg)](https://github.com/hofiorg/dependabot-alerts/actions/workflows/lint-bash.yml)\n\nA script to fetch [Dependabot](https://github.com/dependabot) alerts for all repositories of a GitHub user.\n\n## 🛠️ Prerequisites\n\nThis script requires the following tools to be installed on your system:\n\n- [`curl`](https://curl.se/) — for making HTTP requests to the GitHub API  \n- [`jq`](https://stedolan.github.io/jq/) — for parsing JSON responses in Bash\n\n### ☑️ Check if they are installed\n\nRun the following commands to verify:\n\n```sh\nwhich curl\nwhich jq\n```\n\nIf either command returns no path, you need to install the missing tools.\n\n## 📥 Installation\n\n### On Ubuntu (including WSL)\n\n```sh\nsudo apt update\nsudo apt install -y curl jq\n```\n\n### 🔐 Set up the GitHub Personal Access Token\n  \nCreate a fine-grained or classic token at 👉 \u003chttps://github.com/settings/tokens\u003e with the following permissions:\n\n- `repo` (for private repositories, if applicable)\n- `security_events` (for Dependabot alerts)\n\n### 🌍 Set the token as Environment Variable\n\n```sh\nexport GH_TOKEN=your_github_token_here\n```\n\nTo make this persistent, add the above line to your `~/.bashrc` or `~/.zshrc`.\n\n### 🚀 Usage\n\nRun the script as follows:\n\n```sh\n./dependabot-alerts [github_username]\n```\n\nIf no username is provided, it defaults to `hofiorg`.\n\n#### 🧪 Examples\n\n```sh\n./dependabot-alerts\n./dependabot-alerts octocat\n```\n\n#### 📊 Output Example\n\nWhen you run the script, you'll see a table like this:\n\n```txt\n📦 Fetching repository list for user 'hofiorg'...\nRepository                     Status\n------------------------------ ------\nangular-boilerplate            ✅\ngraphql_react_example          ❌ 2\njava_websockets                ✅\nreact-input-calendar           -\nutils                          ✅\n```\n\n**Legend:**\n\n- ✅ – No open Dependabot alerts  \n- ❌ *n* – *n* open, undismissed alerts found  \n- `-` – Alerts not accessible (e.g., archived or insufficient permissions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhofiorg%2Fdependabot-alerts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhofiorg%2Fdependabot-alerts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhofiorg%2Fdependabot-alerts/lists"}