airvzxf / airvzxf/ftp-deployment-action

build(dockerfile): missing OCI labels (org.opencontainers.image.source, .licenses, .version)

未关闭
#207 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
audit build pending-design pending-human priority:low
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

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