feat: scope security-review cache-memory to PR via key field#96
Draft
feat: scope security-review cache-memory to PR via key field#96
Conversation
…field
The original attempt used id: which mounts at a different folder path
(/tmp/gh-aw/cache-memory-{id}/) while the prompt references files at
/tmp/gh-aw/cache-memory/ — causing memory lookups to fail.
The correct approach is key: which keeps the mount at /tmp/gh-aw/cache-memory/
but scopes the GitHub Actions cache to the specific PR number. Per gh-aw docs,
custom keys auto-append -RUN_ID, and progressive restore tries the same-PR
prefix first before falling back to any previous security review cache.
Co-authored-by: pmalarme <686568+pmalarme@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate cache-memory with custom IDs for agentic workflow
feat: scope security-review cache-memory to PR via key field
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
security-reviewworkflow's prior attempt at PR-scoped memory usedid:which changes the mount path to/tmp/gh-aw/cache-memory-{id}/, while the prompt hardcodes/tmp/gh-aw/cache-memory/— so memory was never found. The correct field iskey:, which scopes the GitHub Actions cache entry without altering the mount point.Changes
security-review.md: Replacecache-memory: truewith a PR-scopedkey:security-review.lock.yml: Update restore/save cache keys accordingly. Per gh-aw docs, custom keys auto-append-${{ github.run_id }}; progressive restore-keys fall back from same-PR → any prior security-review run:Testing
uv run poe checkChecklist
Additional context
id:is for distinguishing multiple cache-memory entries (each gets its own subfolder).key:is for controlling the GitHub Actions cache key used to save/restore a single entry. These are orthogonal concerns; the original attempt conflated them.security-review-patterns.json), while preferring same-PR context first.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
deepwiki.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)github.github.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)github.github.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)https://api.github.com/repos/github/gh-aw/releases/latest/usr/bin/gh gh extension install github/gh-aw(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.