Ayushparikh-code / Ayushparikh-code/security-on-github
Find repository vulnerabilities
- 主要语言
- JavaScript
- 星标
- 2
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
## Finding vulnerable dependencies
Security vulnerabilities can cause a range of problems for your project or the people who use it. A vulnerability could affect the confidentiality, integrity, or availability of a project. Sometimes vulnerabilities aren't in the code you write, but in the code your project depends on. Staying up-to-date with the most recent versions is the best line of defense.
This repository has some existing dependencies which will need updating to stay secure.
### How can we identify dependencies and if they are vulnerable?
This repository is a Node.js project utilizing NPM. Because of that, the `package.json` defines this repository's dependencies. For our time together, we'll be focusing on these JavaScript dependencies. Keep in mind that different programming languages may have different dependency files. You might work with a `Gemfile`, `Gemfile.lock`, `*.gemspec`, `requirements.txt`, `pipfile.lock`, or other files.
How can we know these dependencies are secure? It's not always easy, but GitHub is watching out.
### GitHub's security alerts for vulnerable dependencies
You may notice some alerts from GitHub about this repository. You may get an email, or see a yellow bar warning you about the `package.json` file.

GitHub tracks public vulnerabilities in Ruby gems, NPM, Python, Java, and .Net packages.
GitHub receives a notification of a newly-announced vulnerability. Next, we check for repositories that use the affected version of that dependency. We send security alerts to a set of people within those affected repositories. The owners are contacted by default. But, it's possible to configure specific teams or individuals to get these important notifications.
**GitHub never publicly discloses identified vulnerabilities for any repository.**
## Step 2: Find this repository's vulnerable dependencies
Use GitHub's security alerts to identify a vulnerable NPM dependency.
### :keyboard: Activity: Identify the suggested version update
1. Click the **Insights** tab in your repository.
2. On the left hand navigation bar, click **Dependency graph**.
3. Scroll down until you see a yellow bar highlighting the dependency named `debug`, and click on the right hand side of the yellow `debug` section.
4. Take note of the suggested version.
5. Comment in this issue with the suggested update version.
> _**GitHub Enterprise Server only:** This is all possible on GitHub Enterprise through GitHub Connect. It may take up to an hour to refresh the alerts and make them visible. After waiting a reasonable amount of time, if you are still not seeing the yellow bar in the Dependency Graph, you may want to contact your administrator. In the mean time, to move along with the course, we'll give you a hint - the recommended upgraded version is `2.6.9`._
For a printable version of the steps in this course, check out the [Quick Reference Guide](https://lab.github.com/public/securing-your-workflows.pdf).
Return to this issue for my next comment.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 package.json 和仓库的 Insights > Dependency graph 开始。检查 debug 依赖项的黄色警告,记下建议的版本,并在 issue 中评论该版本。完成的标准是确定建议的更新并将其发布在此处。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, nodejs
- 领域
- security
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100