Repository navigation
Commit 656b248
fix(ci): boj-build passes context through env and posts only over https (#299)
## Summary
This is one of the departure fixes the owner approved on 2026-11-14, and
the same fix as hyperpolymath/chora-registry#116 (merged).
`boj-build.yml` had two problems:
- It wrote `${{ github.repository }}` and `${{ github.ref_name }}`
directly into `run:`, which allows shell injection.
- It POSTed in clear text to `http://boj-server.local:7700`. A
GitHub-hosted runner can't resolve that mDNS name, so under
`continue-on-error` the step always failed silently.
## Changes
- The GitHub context goes through `env:`. The body is built with `jq -cn
--arg`.
- The URL comes from the `BOJ_SERVER_URL` secret or variable. With no
URL set, the job does nothing.
- curl runs with `--proto '=https'`, and an http URL skips with a
warning (HTTPS-only rule).
- Adds a concurrency group, `persist-credentials: false`, and a warning
in place of `continue-on-error`. The duplicated actions-lock header
lines are removed.
- The `uses:` line is unchanged, so `actions.lock` needs no refresh.
## Verification
- shellcheck passes on the extracted run script.
- The script was run with the URL unset, with an http URL, and with an
unreachable https URL. It exits 0 each time and logs why.
---
_Generated by [Claude
Code](https://claude.ai/code/session_0136P7ZoBy5xGnGDLk7wQ8jC)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6262892 commit 656b248
2 files changed
Lines changed: 65 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
| 14 | + | |
6 | 15 | | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
10 | 25 | | |
11 | 26 | | |
| 27 | + | |
12 | 28 | | |
13 | 29 | | |
| 30 | + | |
14 | 31 | | |
15 | | - | |
| 32 | + | |
16 | 33 | | |
17 | 34 | | |
18 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
19 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
20 | 45 | | |
21 | | - | |
22 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
23 | 68 | | |
24 | | - | |
25 | | - | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
0 commit comments