Draft
Conversation
Signed-off-by: Ryan Northey <ryan@synca.io>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update audit scripts to use hermetic jq toolchain
Use hermetic jq toolchain for PGP audit rules
Sep 6, 2026
phlax
force-pushed
the
bazel-gpg
branch
21 times, most recently
from
September 7, 2026 09:23
e1f7bad to
fcd89b3
Compare
phlax
force-pushed
the
bazel-gpg
branch
18 times, most recently
from
September 8, 2026 19:34
1b01322 to
2f2dfe5
Compare
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 PGP audit was implemented as shell scripts that could run host
jq, making the security audit itself non-hermetic. This moves audit evaluation into Bazel/Starlark-backed jq actions using the resolvedaspect_bazel_libjq toolchain.Hermetic audit rules
//pgp/audit:defs.bzlwithpgp_audit,pgp_audit_test, and runnable//pgp/audit:audit.aqueryJSON.$PATH.jq filter-based audit logic
pgp/audit/lib.jqandpgp/audit/audit.jq.{ "actions": 4, "failures": [] }Fixture generation without shell jq
jq()targets.Live audit cleanup
//pgp/test:live_auditnow only captures livebazel aqueryoutput, then runs//pgp/audit:audit.JQ_BINand deleted the old shell audit scripts.Input classification fix
stub_signerby name.Example usage: