every deploy re-asserts config 0600 and drops secret-bearing editor debris.
Browse files at this commitb8a9cbd576ccf953130d07ef4c585e617bede115Parent: b88da931 changed file +3 -0
.github/workflows/main.ymlmodified+3 -0
| @@ -162,6 +162,9 @@ jobs: | ||
| 162 | 162 | echo "no listen address in $deploy_path/config/iz.toml" >&2 |
| 163 | 163 | exit 1 |
| 164 | 164 | fi |
| 165 | + chmod 0600 -- "$deploy_path/config/"*.toml 2>/dev/null || true | |
| 166 | + chmod 0600 -- "$deploy_path/config/"*.keys 2>/dev/null || true | |
| 167 | + find "$deploy_path/config" -maxdepth 1 -type f \( -name '*.bak*' -o -name '*.pre-*' \) -delete | |
| 165 | 168 | chmod +x -- "$deploy_path/current.new/iz-web" |
| 166 | 169 | rm -rf -- "$deploy_path/current.previous" |
| 167 | 170 | if [ -e "$deploy_path/current" ]; then |