Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: EACCES: permission denied, mkdir when running with act on full #213

Closed
eladm-ultrawis opened this issue Nov 10, 2023 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@eladm-ultrawis
Copy link

I have trying to run the following workflow with act:

name: ci2
run-name: PR Check run by ${{ github.actor }}

on:
  workflow_dispatch: # allow manual runs 
jobs:
  linux-clang:
    # runs-on: ubuntu-22.04
    runs-on: ubuntu-latest
    steps:
    - name: get vcpkg
      uses: lukka/run-vcpkg@v11
      with:
        vcpkgGitCommitId: '9f03078bdcbab3ad8c1e3927c40c3fb48e42501f'
         # This is the default location of the directory containing vcpkg sources.
         # Change it to the right location if needed.
         # vcpkgDirectory: '${{ github.workspace }}/vcpkg'

When I run it on ubuntu-22.04 it succeeds. however if I use the act latest and full image it fails:

act -j linux-clang -P ubuntu-latest=catthehacker/ubuntu:full-latest

output:

i2/linux-clang]   ❓  ::group::Prepare output directories
| The vpckg root directory: '/home/eladm/workspace/cranebit/vcpkg'
[ci2/linux-clang]   ❓  ::endgroup::
| ⏱ elapsed: 0.002 seconds
| Error: EACCES: permission denied, mkdir '/home/eladm/workspace/b'
[ci2/linux-clang]   ❗  ::error::run-vcpkg action execution failed: EACCES: permission denied, mkdir '/home/eladm/workspace/b'
[ci2/linux-clang]   ❌  Failure - Main get vcpkg
[ci2/linux-clang] exitcode '24': failure
[ci2/linux-clang] 🏁  Job failed
Error: Job 'linux-clang' failed

here is a link to the issue on the act repo:

nektos/act#2086

@lukka
Copy link
Owner

lukka commented Nov 11, 2023

@eladm-ultrawis thank you for reporting this issue! I think run-vcpkg should not try to write any file outside the GITHUB_WORKSPACE tree.

@lukka lukka self-assigned this Nov 11, 2023
@lukka lukka added the bug Something isn't working label Nov 11, 2023
@lukka
Copy link
Owner

lukka commented Nov 12, 2023

@eladm-ultrawis please give a try to run-vcpkg@dev/no-out-wks-file-writes, thank you.

@eladm-ultrawis
Copy link
Author

@lukka I think it works! thank you for the fix. can we expect a release with this?

@lukka
Copy link
Owner

lukka commented Nov 12, 2023

@eladm-ultrawis fixed in run-vcpkg@v11 (where v11 is the branch which is always update to last release ) or [email protected] to pin your workflow to this release (where v11.3 is a tag).

@lukka lukka closed this as completed Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants