You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Add a configurable artifact/output directory for prompt-audit helper scripts and workflow instructions instead of hardcoding /tmp paths.
Why a Customer Would Want This
Teams running these workflows in locked-down CI runners or local environments often have restricted or ephemeral /tmp semantics, which makes prompt-audit setup brittle and harder to reproduce. A configurable path improves reliability and makes investigation artifacts easier to retain.
Rough Implementation Sketch
Add a shared output-root input/env (for example artifact-root or PROMPT_AUDIT_DIR) and plumb it through prompt-audit setup commands.
Update scripts/extract-lockfile-prompts.sh to default to that configured location rather than /tmp/prompt-audit.
Update scripts/fetch-workflow-logs.py default output dir from /tmp/gh-aw/logs to the same configurable root (with CLI override preserved).
Update trigger-prompt-audit.yml instructions to reference the configured directory path consistently.
Why It Won't Be That Hard
The change is localized to two helper scripts plus one trigger workflow prompt/instructions. All needed extension points already exist (--output-dir in Python script and positional output-dir argument in shell script), so this is mostly wiring defaults and docs.
Evidence
scripts/fetch-workflow-logs.py hardcodes /tmp/gh-aw/logs as default in both usage text and argparse defaults (L14, L140-L141).
scripts/extract-lockfile-prompts.sh hardcodes /tmp/prompt-audit as the default output directory (L6, L15).
.github/workflows/trigger-prompt-audit.yml assumes extracted prompts are written to /tmp/prompt-audit/ in assignment instructions (L24, L28).
Duplicate Check
Searched open issues for equivalent requests and did not find an existing match:
Feature Idea
Summary: Add a configurable artifact/output directory for prompt-audit helper scripts and workflow instructions instead of hardcoding
/tmppaths.Why a Customer Would Want This
Teams running these workflows in locked-down CI runners or local environments often have restricted or ephemeral
/tmpsemantics, which makes prompt-audit setup brittle and harder to reproduce. A configurable path improves reliability and makes investigation artifacts easier to retain.Rough Implementation Sketch
artifact-rootorPROMPT_AUDIT_DIR) and plumb it through prompt-audit setup commands.scripts/extract-lockfile-prompts.shto default to that configured location rather than/tmp/prompt-audit.scripts/fetch-workflow-logs.pydefault output dir from/tmp/gh-aw/logsto the same configurable root (with CLI override preserved).trigger-prompt-audit.ymlinstructions to reference the configured directory path consistently.Why It Won't Be That Hard
The change is localized to two helper scripts plus one trigger workflow prompt/instructions. All needed extension points already exist (
--output-dirin Python script and positional output-dir argument in shell script), so this is mostly wiring defaults and docs.Evidence
scripts/fetch-workflow-logs.pyhardcodes/tmp/gh-aw/logsas default in both usage text and argparse defaults (L14,L140-L141).scripts/extract-lockfile-prompts.shhardcodes/tmp/prompt-auditas the default output directory (L6,L15)..github/workflows/trigger-prompt-audit.ymlassumes extracted prompts are written to/tmp/prompt-audit/in assignment instructions (L24,L28).Duplicate Check
Searched open issues for equivalent requests and did not find an existing match:
repo:elastic/ai-github-actions is:issue is:open "prompt-audit" "output-dir"repo:elastic/ai-github-actions is:issue is:open "fetch-workflow-logs.py" "/tmp/gh-aw/logs"repo:elastic/ai-github-actions is:issue is:open "extract-lockfile-prompts.sh" "/tmp/prompt-audit"Closest related issue is
#987(fail-closed dedupe mode for Scheduled Audit), which changes dedupe behavior and not artifact path configurability.Note
🔒 Integrity filter blocked 69 items
The following items were blocked because they don't meet the GitHub integrity level.
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter:What is this? | From workflow: Trigger Product Manager Impersonator
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.