Commit 43c0b6f
committed
ci: pass the qemu tests only the secrets they use
reusable-qemu-test.yaml reads QUAY_USERNAME and QUAY_PASSWORD and nothing
else, but declares no workflow_call secrets, so its callers have to use
`secrets: inherit`. That hands every repository and organisation secret to
jobs whose whole purpose is to boot an image built from the pull request
under review.
Harmless today only by accident: GitHub withholds secrets from pull_request
runs originating in a fork, so the jobs that would be interesting to attack
never receive anything. That protection disappears the moment a
pull_request_target path exists, which is exactly what kairos#4307 is
about -- so this is worth fixing before it becomes reachable rather than
alongside it.
Declares the two secrets on the reusable workflow and passes them
explicitly from image-pr.yaml. No behaviour change: the same two values
reach the same jobs, and nothing else does.
Refs: #4307
Signed-off-by: Mauro Morales <contact@mauromorales.com>1 parent 73b8a47 commit 43c0b6f
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
84 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
0 commit comments