Commit 9343615
feat(one-shot-token): add logging for cached token accesses
Add print statements whenever getenv() or secure_getenv() are called
for sensitive tokens, even when returning cached values. Previously,
only the first access was logged. Now subsequent accesses also log
"accessed (cached value)" for better debugging visibility.
This helps diagnose token access patterns and verify that the
one-shot-token library is working correctly.
Example output:
- First access: "Token GITHUB_TOKEN accessed and cached (value: ghp_...)"
- Subsequent: "Token GITHUB_TOKEN accessed (cached value: ghp_...)"
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>1 parent 2150520 commit 9343615
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
| 359 | + | |
| 360 | + | |
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
| |||
0 commit comments