We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bda3b5 commit 66e810bCopy full SHA for 66e810b
coderd/audit/audit_gen.sh
coderd/audit/generate.sh
@@ -0,0 +1,14 @@
1
+#!/usr/bin/env bash
2
+
3
+# This script facilitates code generation for auditing types. It outputs code
4
+# that can be copied and pasted into the audit.AuditableResources table. By
5
+# default, every field is ignored. It is your responsiblity to go through each field and document why each field should or should not be audited.
6
+#
7
+# Usage:
8
+# ./generate.sh <database type> <database type> ...
9
10
11
+set -euo pipefail
12
13
+cd "$(dirname "$0")" && cd "$(git rev-parse --show-toplevel)"
14
+go run ./scripts/auditgen ./coderd/database "$@"
0 commit comments