[bug-hunter] Update PR Body workflow references undeclared messages-footer input

Đang mở Phù hợp với người mới
#2,499 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python, yaml
Lĩnh vực
ci-cd

Hướng nghiên cứu

Đọc .github/workflows/gh-aw-update-pr-body.md, tập trung vào khối workflow_call.inputs và các tham chiếu inputs.messages-footer quanh dòng 91 và 111. Chạy tập lệnh tái hiện từ issue để xác nhận input còn thiếu. Hoàn tất khi input được đề cập đã được khai báo và tập lệnh chạy thành công.

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

Mô tả

Impact

Callers of .github/workflows/gh-aw-update-pr-body.lock.yml cannot provide a custom footer even though the workflow source references inputs.messages-footer as an override. Passing with: messages-footer: ... to a reusable workflow call will be rejected as an unexpected input, which blocks the run.

Reproduction Steps

  1. From repo root, run this new minimal reproduction script:
python - <<'PY'
from pathlib import Path
import re, sys
p = Path('.github/workflows/gh-aw-update-pr-body.md')
text = p.read_text()

# Frontmatter block
start = text.find('---\n')
end = text.find('\n---\n', start + 4)
frontmatter = text[start + 4:end]

# Declared workflow_call inputs
m = re.search(r'workflow_call:\n\s+inputs:\n(?P<body>.*?)(?:\n\s{2}\w|\nroles:)', frontmatter, re.S)
if not m:
    print('Could not locate workflow_call.inputs block')
    sys.exit(2)

declared = set(re.findall(r'^\s{6}([a-zA-Z0-9_-]+):\s*$', m.group('body'), re.M))
referenced = set(re.findall(r'inputs\.([a-zA-Z0-9_-]+)', text))
undeclared = sorted(referenced - declared)

print('Declared inputs:', sorted(declared))
print('Referenced inputs:', sorted(referenced))
print('Undeclared referenced inputs:', undeclared)

if undeclared:
    sys.exit(1)
PY

Expected vs Actual

Expected: Every inputs.<name> used by the workflow is declared under workflow_call.inputs, including messages-footer if it is intended to be user-configurable.

Actual: messages-footer is referenced but not declared; the reproduction exits with code 1.

Actual output:

Declared inputs: ['additional-instructions', 'allowed-bot-users', 'edit-accuracy', 'edit-completeness', 'edit-format', 'edit-style', 'model', 'report-failure-as-issue', 'setup-commands']
Referenced inputs: ['additional-instructions', 'allowed-bot-users', 'edit-accuracy', 'edit-completeness', 'edit-format', 'edit-style', 'messages-footer', 'model', 'setup-commands']
Undeclared referenced inputs: ['messages-footer']

Failing Test

Same script as in reproduction step 1 (it exits non-zero when undeclared referenced inputs exist).

Evidence

  • .github/workflows/gh-aw-update-pr-body.md:91 references inputs.messages-footer in safe-outputs.messages.footer.
  • .github/workflows/gh-aw-update-pr-body.md:111 documents inputs.messages-footer in the prompt context.
  • .github/workflows/gh-aw-update-pr-body.md:22-68 defines workflow_call.inputs, but no messages-footer input is declared.

What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

  • expires on Nov 19, 2026, 11:23 AM UTC
Ngôn ngữ chính
Python
Star
13
Fork
16
Merge trung bình
45 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của elastic/ai-github-actions

Tất cả issue của elastic/ai-github-actions

Issue tương tự

Thêm issue về Python

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.