Skip to content

chore: exclude the two P/Invoke audit queries in codeql.yml (Standards §4.4) - #31

Merged
StuartMeeks merged 1 commit into
mainfrom
chore/codeql-exclude-pinvoke-audit-queries
Aug 21, 2026
Merged

chore: exclude the two P/Invoke audit queries in codeql.yml (Standards §4.4)#31
StuartMeeks merged 1 commit into
mainfrom
chore/codeql-exclude-pinvoke-audit-queries

Conversation

@StuartMeeks

Copy link
Copy Markdown
Owner

Adopts the revised canonical codeql.yml from NextIteration.Standards#18 — a query-filters block excluding exactly cs/unmanaged-code and cs/call-to-unmanaged-code.

These are audit queries that fire on every P/Invoke into the Keychain/libsecret/DPAPI backends. No code change resolves them — native interop is the whole point of these backends. Excluding exactly those two is a genuine config fix (every other security-and-quality query still runs on the interop files, so nothing real is lost), and it replaces the per-alert won't fix dismissals that kept reopening whenever a reformat shifted a line number (twice this week).

After this merges, the previously-dismissed P/Invoke alerts simply won't be produced.

Depends on standards PR #18 for full §3.0.1 conformance (this repo's codeql.yml now matches the proposed template). Independent of it functionally — this repo's CI just stops emitting the two queries.

🤖 Generated with Claude Code

…s §4.4)

Adopts the revised canonical codeql.yml (standards PR #18): a query-filters
block excluding cs/unmanaged-code and cs/call-to-unmanaged-code. These audit
queries fire on every P/Invoke into the Keychain/libsecret/DPAPI backends and
no code change resolves them (native interop is the point). Excluding exactly
those two — every other security-and-quality query still runs on the interop
files — is a genuine config fix that replaces the per-alert dismissals, which
reopened whenever a reformat shifted line numbers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@StuartMeeks
StuartMeeks merged commit ad0cb24 into main Aug 21, 2026
9 checks passed
@StuartMeeks
StuartMeeks deleted the chore/codeql-exclude-pinvoke-audit-queries branch August 21, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant