Commit f4a3b90
Potential fix for code scanning alert no. 99: Log entries created from user input (#258)
* Potential fix for code scanning alert no. 99: Log entries created from user input
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Update SanitizeForLog to handle nullable input safely
SanitizeForLog now accepts a nullable string and returns an empty
string if the input is null, preventing possible null reference
exceptions and improving log safety.
---------
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>1 parent b336511 commit f4a3b90
File tree
1 file changed
+6
-1
lines changed- src/GitHubActions.Gates.Framework/FunctionHandlers
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments