ai-cfia / ai-cfia/github-workflows

Add --omit dev to frontend SBOM workflow

未关闭
#228 0 条评论 0 个 reaction 已指派 0 人 已被 @Slumberdac 认领 在 GitHub 查看
主要语言
没有语言数据
星标
2
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

## Summary

`workflow-generate-frontend-sbom.yml` generates a production SBOM but includes devDependencies. Since devDependencies don't ship to production, they should be excluded for more accurate security scanning.

## Suggested fix

Add `--omit dev` to the `cyclonedx-npm` command, or expose it as an input parameter (e.g. `npm-omit`, defaulting to `dev`).

```diff
npx @cyclonedx/cyclonedx-npm package-lock.json \
--output-reproducible \
--package-lock-only \
+ --omit dev \
-v --sv "${CDX_SV}" \
-o sbom.json
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。