Commit a229f56
fix: remove credentials file before layer is committed
Deleting ~/.nuget/config/credentials.config in the same RUN instruction
ensures the PAT never appears in the final layer snapshot (create + delete
in one RUN = net zero diff). Prevents credential leakage into BuildKit
layer cache.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6b3aa9a commit a229f56
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
0 commit comments