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

Aperta Adatta ai principianti
#2,499 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, python, yaml
Ambito
ci-cd

Direzione di ricerca

Leggi .github/workflows/gh-aw-update-pr-body.md, concentrandoti sul blocco workflow_call.inputs e sui riferimenti a inputs.messages-footer intorno alle righe 91 e 111. Esegui lo script di riproduzione dell’issue per confermare che l’input manca. Il lavoro è completato quando l’input indicato è dichiarato e lo script termina correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
13
Fork
16
Merge medio
45m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di elastic/ai-github-actions

Tutte le issue di elastic/ai-github-actions

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.