Commit 39f9a66
committed
Tighten CI workflow defaults
Three defensive additions to .github/workflows/ci.yml:
- `permissions: contents: read` at the workflow level. Nothing in the
workflow needs write access to the repo, and least-privilege defaults
shrink the blast radius if any action ever turns out to be hostile.
- A `concurrency` group keyed on the workflow and ref, cancelling
in-progress runs only when triggered by a pull request. Stacked PR
pushes no longer waste CI minutes on superseded matrices; pushes to
master and the Saturday cron still run to completion.
- `timeout-minutes: 20` on the test job. The suite finishes in well
under that locally; the timeout guards against a hung runner (most
likely on the ruby-head row) eating the GH Actions budget for six
hours.1 parent e88ab5a commit 39f9a66
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| |||
0 commit comments