Skip to content

Commit 85e09f3

Browse files
committed
ci: temporarily run upload job as root
This commit modifies the upload job in the `build.yaml` GitHub Action to temporarily run as root. This change addresses permission issues caused by a bug in GitHub's runner selection process (see actions/checkout#1014).
1 parent 8294269 commit 85e09f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ jobs:
167167
# for ref value discussion
168168
ref: ${{ github.event.pull_request.head.sha }}
169169

170-
- name: Reset workspace permissions
171-
run: chown -R $USER:$USER $GITHUB_WORKSPACE
172-
173170
- name: Set up go
174171
id: go
175172
uses: actions/setup-go@v5
@@ -255,6 +252,8 @@ jobs:
255252
contents: "read"
256253
id-token: "write"
257254
runs-on: ubuntu-latest
255+
container:
256+
options: --user root
258257
needs:
259258
- macos-build
260259
- linux-build

0 commit comments

Comments
 (0)