Commit 264b125
committed
workflows: chown workspace before checkout in all repo-runner jobs
The self-hosted 'repository' runner pool is shared across workflows
(and across runs of the same workflow). Several jobs already pre-chown
$GITHUB_WORKSPACE back to the runner user before actions/checkout@v6
fires — update-repository, Sync, Index — precisely because prior sudo
operations on tools/repository/repo.sh output can leave root-owned
files in the workspace. Checkout's default clean: true then fails
with EACCES unlink when it hits one:
Error: File was unable to be removed Error: EACCES: permission denied,
unlink '/home/actions-runner-23/_work/armbian.github.io/armbian.github.io/build/.coderabbit.yaml'
Copying and prepare-repos in the caller workflow, and postclean in
the reusable download-external workflow, were the three remaining
repo-runner jobs missing this guard. Add the same 'Fix workspace
ownership' step to each. Makes workspace state robust to whatever
the previous job left behind, without having to reason about which
specific sudo op produced the root-owned file.1 parent 8bb544b commit 264b125
File tree
2 files changed
+32
-0
lines changed- .github/workflows
2 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
155 | 167 | | |
156 | 168 | | |
157 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| |||
193 | 207 | | |
194 | 208 | | |
195 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
196 | 216 | | |
197 | 217 | | |
198 | 218 | | |
| |||
0 commit comments