anthropics / anthropics/claude-code-action

Logging tool permission errors somewhere ..

Offen
#357 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement p3
Vorherrschende Sprache
TypeScript
Sterne
8.9k
Forks
2.1k
Ø Merge
3 T. 9 Std.
Gemergte PRs (30 T.)
10

Beschreibung

I'm working in integrating this into an internal tool to help our teams get some extra insights into PRs ..
I'm seeing that the agent at times likes to invent creative ways of getting some information and decides to run various permutation of for example Bash commands ..
I'm trying to avoid just letting it run any Bash command, but I'd like to also get observability into when it tries to run a command, but it doesn't have the permissions to.

I already tried enabling otlp telemetry, and while the logs and metrics are interesting, they seem to only log "actually attempted" tool executions, and not those denied by "allowed_tools"

I know I can manually see the failed tools in the job execution summary, but I was hoping to hook up some monitors to this event so that we can react and evaluate if we should be allowing these additional tools on a per case basis.

Is there currently an easy way to hook .. anything .. I'd be happy if I can trigger a shell script when a tool is denied, I can then log an event about it or whatever ..

Also how much is this implementation specific to the GHA edition of claude code, should I also be filing a ticket against claude code itself to perhaps have a new event type be logged for denied tools?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.