Commit 4c0d903
committed
Fix some bandit findings
Everything in the middle serverity level and higher:
* Adds a timeout to the SPOT call (30 seconds)
* Use python's `tempfile` to make the temporary PDF written to
* even though we don't read from the file, we don't want to write to a different / injected file.1 parent 08ba6a0 commit 4c0d903
1 file changed
+12
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
1630 | 1631 | | |
1631 | 1632 | | |
1632 | 1633 | | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1643 | 1645 | | |
1644 | 1646 | | |
1645 | 1647 | | |
| |||
0 commit comments