Skip to content

feat: 利用Github Action进行代码安全扫描,并生成报告#70

Merged
shuaiplus merged 1 commit intoshuaiplus:mainfrom
nap0o:main
Mar 11, 2026
Merged

feat: 利用Github Action进行代码安全扫描,并生成报告#70
shuaiplus merged 1 commit intoshuaiplus:mainfrom
nap0o:main

Conversation

@nap0o
Copy link
Contributor

@nap0o nap0o commented Mar 10, 2026

NodeWarden 是对安全性要求很高的项目.

PR功能介绍

用github action在每次push时自动扫描代码安全漏洞,生成报告并推送到孤儿分支security-audit

代码安全检测项

  • 用Gitleaks检测检查代码中的敏感信息
  • 用CodeQL静态代码安全分析
  • 用Trivy检测Dockerfile容器配置安全,没有Dockerfile则跳过
  • 用Snyk检查依赖包漏洞

snyk获取秘钥,在项目settings -> Actions secrets and variables
-> action -> 配置 SECURITY_SNYK_TOKEN 秘钥

大佬代码写的很好,只有几个warning

ps:我也在折腾一个2FA的项目: 2FAuth Worker ,向大佬学习。

@github-advanced-security
Copy link

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@shuaiplus shuaiplus merged commit d1aee25 into shuaiplus:main Mar 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants