airvzxf / airvzxf/ftp-deployment-action
build(dockerfile): missing OCI labels (org.opencontainers.image.source, .licenses, .version)
- 主要语言
- Shell
- 星标
- 37
- 派生
- 9
- 平均合并
- 44 分钟
- 30 天内合并 PR
- 47
描述
gh issue create --title "build(dockerfile): missing OCI labels (org.opencontainers.image.source, .licenses, .version)" --label "build,audit,priority:low" --body "## Finding
Dockerfile does not set OCI image labels (org.opencontainers.image.source, org.opencontainers.image.licenses, org.opencontainers.image.version, org.opencontainers.image.revision). Container registries use these to render metadata, and `docker inspect` users see them as a contract.
## Affected code
- Dockerfile — LABEL instructions (missing)
## Reproduction
1. `docker inspect | jq '.[0].Config.Labels'`.
2. Observe no OCI labels.
## Suggested fix
Add LABEL statements:
LABEL org.opencontainers.image.source=\"https://github.com/airvzxf/ftp-deployment-action\" \\
org.opencontainers.image.licenses=\"AGPL-3.0\" \\
org.opencontainers.image.version=\"\${VERSION}\"
Pass VERSION via --build-arg. Or use the GitHub Actions `docker/metadata-action` to set them at build time.
## Source
F2 audit 2026-09-03 (Dockerfile/Makefile audit). Reporter: subagent-pekodbj7.
## Related
- Part of EPIC #[epic-number]
- Closes: #NONE (no existing issue)"
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。