Skip to content

[static-analysis] fix(shellcheck): suppress SC2086 on intentional hippo CLI arg splitting #73718

Done

Description

@github-actions

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: .github/workflows/shared/hippo-memory.md

Allow intentional protected-file changes

If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: request-review
      exclude:
        - .changeset/

Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Warning

Changes to workflow YAML files were excluded from this changeset to avoid GitHub token workflow-write restrictions. Run gh aw compile again on this branch and commit the regenerated .lock.yml files using credentials permitted to update GitHub Actions workflows before merging.

Summary

  • Standalone shellcheck (running on 23051 run-step resources) flags SC2086 on the mcp-scripts.hippo run step in both daily-hippo-learn.lock.yml:2 and hippo-embed.lock.yml:2 (hippo $INPUT_ARGS).
  • Root cause: .github/workflows/shared/hippo-memory.md defines the hippo mcp-script as hippo $INPUT_ARGS with $INPUT_ARGS intentionally unquoted -- callers invoke it as mcpscripts hippo --args "learn --git", and the unquoted expansion is what splits the single args string into separate CLI arguments for the hippo binary. Quoting it (the usual SC2086 remediation) would collapse everything into one argument and break every existing mcpscripts hippo --args "..." call across both workflows.
  • This exact finding was previously claimed "fixed" per cache-memory scan notes from 2026-10-28, but the change was never actually present in source -- confirmed by inspecting shared/hippo-memory.md before this change, and by today's scan (run #41273935216) still reporting it.

Fix

Added a scoped shellcheck disable comment directly above the line, with a one-line rationale, in the single shared source (shared/hippo-memory.md) imported by both workflows -- no behavior change, just documents the intentional word-splitting so the linter stops flagging it.

       echo "hippo $INPUT_ARGS"
+      # shellcheck disable=SC2086 # INPUT_ARGS intentionally word-splits into multiple hippo CLI arguments
       hippo $INPUT_ARGS

Evidence

Finding from today's static-analysis compile run (run #41273935216):

shellcheck findings in daily-hippo-learn (step: mcp-scripts.hippo):
script:2:7: note: Double quote to prevent globbing and word splitting. [SC2086]
shellcheck findings in hippo-embed (step: mcp-scripts.hippo):
script:2:7: note: Double quote to prevent globbing and word splitting. [SC2086]

Validation

  • ./gh-aw compile .github/workflows/daily-hippo-learn.md .github/workflows/hippo-embed.md --validate --verbose recompiles both workflows cleanly (2 succeeded, 1 pre-existing unrelated warning on hippo-embed.md about GitHub toolset permissions, not touched by this change) with no shellcheck findings reported for either file post-fix.
  • Regenerated .lock.yml files for both workflows are included in this commit so the suppression comment is present in the compiled output (verified by diff: the comment lands inside the run: block, directly before hippo $INPUT_ARGS).
  • make test-unit (impacted-first): no Go files changed, so no Go unit tests were applicable -- this is a workflow-markdown-only change.
  • Did not run the full make recompile (it hit an unrelated, pre-existing sandbox network failure compiling smoke-otel-backends.md -- a self-signed-cert npm registry lookup for an unrelated MCP package -- and failed the whole 353-workflow batch); used a scoped gh-aw compile on just the two affected workflow sources instead, which is sufficient to validate this change.

Static analysis source: workflow run #41273935216


Note

This was originally intended as a pull request, but the git push operation failed.

Original error: ERR_SYSTEM: git push failed (exit code 1): To https://github.com/github/gh-aw.git ! [remote rejected] fix/hippo-mcp-script-shellcheck-sc2086-490346828dd22877 -> fix/hippo-mcp-script-shellcheck-sc2086-490346828dd22877 (refusing to allow a GitHub App to create or update workflow `.github/workflows/shared/hippo-memory.md` without `workflows` permission) error: failed to push some refs to 'https://github.com/github/gh-aw.git'

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

Create the pull request manually
# Download the artifact from the workflow run
gh run download '41273935216' -n agent -D '/tmp/agent-41273935216'

# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-41273935216/aw-github-gh-aw-fix-hippo-mcp-script-shellcheck-sc2086.bundle'
temp_ref='refs/bundles/create-pr-fix-hippo-mcp-script-shellcheck-sc2086-490346828dd22877-8dc44e65'
target_ref='refs/heads/fix/hippo-mcp-script-shellcheck-sc2086-490346828dd22877'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
  bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
  echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
  exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'fix/hippo-mcp-script-shellcheck-sc2086-490346828dd22877'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"

# Push the branch to the target remote
git push 'origin' 'fix/hippo-mcp-script-shellcheck-sc2086-490346828dd22877'

# Create the pull request
gh pr create --title '[static-analysis] fix(shellcheck): suppress SC2086 on intentional hippo CLI arg splitting' --base 'main' --head 'fix/hippo-mcp-script-shellcheck-sc2086-490346828dd22877' --repo 'github/gh-aw'

Generated by 📊 Static Analysis Report · claude · agent · ~417 AIC · ⌖ ~1 AIC · ⊞ 4.9K · ◷

  • expires on Nov 7, 2026, 9:40 PM UTC-08:00

Activity

  1. github-actions commented on Nov 1, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 13.3K · ◷

  2. github-actions commented on Nov 1, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 13.2K · ◷

  3. github-actions commented on Nov 1, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 13.2K · ◷

  4. github-actions commented on Nov 1, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 13.2K · ◷

  5. github-actions commented on Nov 2, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 13.3K · ◷

  6. github-actions commented on Nov 4, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 13.4K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agentic-workflowsautomationcookiesecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions