Commit c1a43c2
committed
Avoid Bandit B105 in substitute leak-test
Codacy/Bandit flagged the literal string assigned to FA_EXEC_SECRET as a
hardcoded password (B105). Switch to pytest's monkeypatch (matching
test_substitution.py's existing pattern), rename the env var so the key
itself does not contain "SECRET", and use a non-credential-looking
sentinel value. Behaviour under test is unchanged.1 parent 7a0072e commit c1a43c2
1 file changed
Lines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
0 commit comments