Skip to content

Commit

Permalink
Set more permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Smjert committed Jul 5, 2024
1 parent 4b8e7d4 commit ca131c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/self_hosted_runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,12 @@ jobs:
- name: Setup the build paths
id: build_paths
run: |
ls -l /var/run/docker.sock
# The self hosted runner host user is root, differently from hosted runners,
# so we need to change permissions of the workspace folders to the current user
sudo chown -R 1001:1001 .
sudo chown -R runner:runner /__w
# Also, the group for the docker socket doesn't have gid docker
sudo chown root:docker /var/run/docker.sock
rel_build_path="workspace/usr/src/debug/osquery/build"
rel_src_path="workspace/padding-required-by-rpm-packages/src"
Expand Down

0 comments on commit ca131c7

Please sign in to comment.