Skip to content

Commit 6a85cdd

Browse files
authored
Merge pull request #31 from chinmina/claude/verify-audit-log-structure-56jOd
2 parents 832e8de + 1afe680 commit 6a85cdd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/content/docs/reference/auditing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Always `"INFO"`. Audit log entries are written unconditionally and are not subje
3333

3434
Always `"audit"`. Use this field to identify audit log entries in queries and alerts.
3535

36-
###### `message`
36+
###### `msg`
3737

3838
Always `"audit_event"`.
3939

@@ -135,7 +135,7 @@ Array of repository URLs the token allows access to. Only present on successful
135135

136136
###### `permissions`
137137

138-
Object containing GitHub token permissions assigned to the token. Only present on successful token issuance.
138+
Array of strings describing the GitHub token permissions assigned to the token. Only present on successful token issuance.
139139

140140
###### `expiry`
141141

@@ -145,7 +145,7 @@ The GitHub token expiry time as an [RFC-3339][rfc-3339] date-time string. Only p
145145

146146
The time the GitHub token will remain valid at the time of logging, in milliseconds. Only present on successful token issuance.
147147

148-
###### `hash`
148+
###### `hashedToken`
149149

150150
SHA-256 hash of the issued token, base64-encoded (`base64(SHA-256(token))`). Only present on successful token issuance. Use this to correlate Chinmina audit events with [GitHub organisation audit log events][gh-audit-token] for the same token.
151151

@@ -197,7 +197,7 @@ HTTP error responses return generic messages like "Forbidden" to avoid leaking p
197197
"permissions": ["contents:read"],
198198
"expiry": "2025-01-20T05:09:45Z",
199199
"expiryRemaining": 1306372,
200-
"hash": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
200+
"hashedToken": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
201201
},
202202
"type": "audit",
203203
"time": "2025-01-20T04:47:00Z",
@@ -240,7 +240,7 @@ HTTP error responses return generic messages like "Forbidden" to avoid leaking p
240240
"permissions": ["contents:write", "packages:write"],
241241
"expiry": "2025-01-20T05:09:45Z",
242242
"expiryRemaining": 1306372,
243-
"hash": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
243+
"hashedToken": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
244244
},
245245
"type": "audit",
246246
"time": "2025-01-20T04:47:00Z",

0 commit comments

Comments
 (0)