Impact
Users who copy the shipped text-auditor example workflow get an invalid workflow configuration. This blocks adoption because workflow lint/validation fails before runtime.
The example currently includes with: but only commented keys, which parses as an empty/null with section.
Reproduction Steps
- Create a new repro file from the shipped example structure:
# /tmp/gh-aw/agent/repro-text-auditor.yml
name: Text Auditor
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
text-auditor:
uses: elastic/ai-github-actions/.github/workflows/gh-aw-text-auditor.lock.yml@main
with:
# intentionally mirrors shipped example's empty with block
secrets:
COPILOT_GITHUB_TOKEN: $\{\{ secrets.COPILOT_GITHUB_TOKEN }}
- Run:
./bin/actionlint -shellcheck= -pyflakes= /tmp/gh-aw/agent/repro-text-auditor.yml
Expected vs Actual
Expected: The published example should validate as-is (or omit with: entirely when no inputs are set).
Actual: Validation fails with syntax error:
../../../../../tmp/gh-aw/agent/repro-text-auditor.yml:8:10: "with" section should not be empty. please remove this section if it's unnecessary [syntax-check]
|
8 | with:
| ^
Failing Test
#!/usr/bin/env bash
set -euo pipefail
cat > /tmp/gh-aw/agent/repro-text-auditor.yml <<'YAML'
name: Text Auditor
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
text-auditor:
uses: elastic/ai-github-actions/.github/workflows/gh-aw-text-auditor.lock.yml@main
with:
# intentionally mirrors shipped example's empty with block
secrets:
COPILOT_GITHUB_TOKEN: $\{\{ secrets.COPILOT_GITHUB_TOKEN }}
YAML
./bin/actionlint -shellcheck= -pyflakes= /tmp/gh-aw/agent/repro-text-auditor.yml
Evidence
- Shipped example contains empty
with: block: gh-agent-workflows/text-auditor/example.yml:15-20
- Duplicate checks showed no matching open issue/PR for this exact failure.
bug-hunter label does not exist in this repo (checked via label API), so filing without label.
What is this? | From workflow: Trigger Bug Hunter
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
Impact
Users who copy the shipped
text-auditorexample workflow get an invalid workflow configuration. This blocks adoption because workflow lint/validation fails before runtime.The example currently includes
with:but only commented keys, which parses as an empty/nullwithsection.Reproduction Steps
Expected vs Actual
Expected: The published example should validate as-is (or omit
with:entirely when no inputs are set).Actual: Validation fails with syntax error:
Failing Test
Evidence
with:block:gh-agent-workflows/text-auditor/example.yml:15-20bug-hunterlabel does not exist in this repo (checked via label API), so filing without label.What is this? | From workflow: Trigger Bug Hunter
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.