Commit d149f66
committed
fix: delete docker-compose.yml after container startup
SECURITY: The docker-compose.yml file contains sensitive environment
variables (GITHUB_TOKEN, etc.) and was accessible via the /tmp volume
mount. Now deleted immediately after docker compose up succeeds, since
Docker only needs the file during startup.
- Added fs.unlinkSync call after successful container startup
- Added test verifying compose file is deleted
- Logs debug message on successful deletion1 parent 13244a6 commit d149f66
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
1531 | 1545 | | |
1532 | 1546 | | |
1533 | 1547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
935 | 949 | | |
936 | 950 | | |
937 | 951 | | |
| |||
0 commit comments