mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-18 10:35:23 +00:00
build: Add a step to fix workspace permissions on bare-metal workers
When a bare-metal worker is canceled, its workspace can be left with files owned by the root user as a result of running tests from our container. This patch add a step to fix workspace permissions for such case before checking out code. Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
d3fade85a7
commit
f48942ce3f
2
.github/workflows/integration-arm64.yaml
vendored
2
.github/workflows/integration-arm64.yaml
vendored
@ -7,6 +7,8 @@ jobs:
|
|||||||
name: Tests (ARM64)
|
name: Tests (ARM64)
|
||||||
runs-on: focal-arm64
|
runs-on: focal-arm64
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fix workspace permissions
|
||||||
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -9,6 +9,9 @@ jobs:
|
|||||||
name: Tests (Rate-Limiter)
|
name: Tests (Rate-Limiter)
|
||||||
runs-on: jammy-rate-limiter
|
runs-on: jammy-rate-limiter
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fix workspace permissions
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/integration-sgx.yaml
vendored
3
.github/workflows/integration-sgx.yaml
vendored
@ -9,6 +9,9 @@ jobs:
|
|||||||
name: Tests (SGX)
|
name: Tests (SGX)
|
||||||
runs-on: jammy-sgx
|
runs-on: jammy-sgx
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fix workspace permissions
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/integration-vfio.yaml
vendored
3
.github/workflows/integration-vfio.yaml
vendored
@ -9,6 +9,9 @@ jobs:
|
|||||||
name: Tests (VFIO)
|
name: Tests (VFIO)
|
||||||
runs-on: jammy-vfio
|
runs-on: jammy-vfio
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fix workspace permissions
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
|
run: sudo chown -R github-runner:github-runner ${GITHUB_WORKSPACE}
|
||||||
- name: Code checkout
|
- name: Code checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user