You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/08/29 19:12:55 UTC

[PR] fix(security-issue-import): require a positive GHSA query on every scan [magpie]

potiuk opened a new pull request, #1128:
URL: https://github.com/apache/magpie/pull/1128

   ## Summary
   
   The skill already says not to exclude `notifications@github.com` wholesale, because that sender carries both tracker-mirror chatter and GHSA-relayed inbound reports. That rule is correct, but it is **negative** — and negative rules are not self-enforcing.
   
   Adds a positive counterpart that every import scan runs alongside the candidate-listing query:
   
   ```text
   from:notifications@github.com newer_than:<window>
     (GHSA OR "Report a vulnerability" OR "security advisory")
   ```
   
   ## Motivation
   
   An exclusion added anywhere for noise reduction — in the candidate query, a project override, a hand-edited one-off — removes the entire GHSA intake channel. **The resulting miss is invisible**: nothing reports that a report was filtered out, so the scan looks clean and the advisory is simply never seen.
   
   A downstream adopter lost an incomplete-fix follow-up advisory to exactly this, and caught it only because the operator independently knew the report existed. That is not a control — it is luck.
   
   Because the new query does not depend on the other query's filter list, the GHSA channel is checked **by construction** and cannot be filtered away by an exclusion elsewhere. Cost is one extra search per scan.
   
   ## Also
   
   Documents the 404 case on the advisory record API. A 404 there means the operator **is not yet a collaborator on that specific advisory** — an access state, not a missing advisory — and the fix is an admin hand-off (someone with advisory-admin rights adds the operator) before the record API and the reporter-reply path work. That distinction is easy to misread as "no such advisory" and abandon.
   
   ## Test plan
   
   `prek run --files` passes on both files. The in-hook lychee confirms the new cross-reference anchor (`#security-issue-import--ghsa-advisory-query-mandatory-second-pass`) resolves against the doctoc-generated TOC, and `check-placeholders` confirms the added text uses only `<upstream>` / `<GHSA>` / `<window>` placeholders.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(security-issue-import): require a positive GHSA query on every scan [magpie]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1128:
URL: https://github.com/apache/magpie/pull/1128


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org