Skip to content

Commit

Permalink
Workflow non root user fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-fazil committed Aug 21, 2024
1 parent ecf4135 commit e5dc20a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:
runs-on: self-hosted
container:
image: hellorobotinc/stretch-install-image
options: --userns=host --privileged
options: --user root
volumes:
- /dev:/dev

steps:
# The "cleanup old checkout" step is needed because of this bug: https://github.com/actions/checkout/issues/1014
- name: cleanup old checkout
run: chmod +w -R ${GITHUB_WORKSPACE}; rm -rf ${GITHUB_WORKSPACE}/*;
- uses: actions/checkout@v4
- name: Configure working direcotry
run: |
Expand Down

0 comments on commit e5dc20a

Please sign in to comment.