airvzxf / airvzxf/ftp-deployment-action

docs(action.yml): mirror_verbose description promises '(0-3)' but validation only checks >= 0

Đang mở Phù hợp với người mới
#200 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
audit documentation pending-design pending-human priority:low
Ngôn ngữ chính
Shell
Star
37
Fork
9
Merge trung bình
44 phút
Pull request đã merge (30 ngày)
47

Mô tả

gh issue create --title "docs(action.yml): mirror_verbose description promises '(0-3)' but validation only checks >= 0" --label "documentation,audit,priority:low" --body "## Finding

The mirror_verbose input description in action.yml says '(0-3)'. The validator in lib.sh only checks >= 0. A value of 5 passes validation; lftp's -v flag does not have an upper bound, but the documented contract says 0-3.

## Affected code

- action.yml — mirror_verbose description
- lib.sh — mirror_verbose validator

## Reproduction

1. Set INPUT_MIRROR_VERBOSE=5.
2. Validation passes; lftp runs with -v 5.

## Suggested fix

Either:
- Loosen the action.yml description to remove the upper bound ('Verbose level for lftp mirror (>= 0). Higher = noisier.').
- Or tighten the validator to reject > 3.

The first option is safer; lftp tolerates any level.

## Source

F2 audit 2026-09-03 (action.yml audit). Reporter: subagent-pekodbj7.

## Related

- Part of EPIC #[epic-number]
- Closes: #NONE (no existing issue)"

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Compare the mirror_verbose description in action.yml with its validator in lib.sh, then review the reproduction using INPUT_MIRROR_VERBOSE=5. Resolve the documented range consistently, favoring the safer documentation change noted in the issue, and verify that the resulting contract matches lftp behavior and validation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github-actions, shell
Lĩnh vực
ci-cd, devops
Loại issue
Tài liệu
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
72/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.