Skip to content

snok/install-poetry@v1 fails with permission denied #2750

Open
@vesnikos

Description

@vesnikos

Bug report info

act version:            0.2.76
GOOS:                   windows
GOARCH:                 amd64
NumCPU:                 22
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        \\.\pipe\docker_engine(broken)
Config files:
        C:\Users\nv15r\AppData\Local\act\actrc:
                -P ubuntu-latest=node:16-buster-slim
                -P ubuntu-22.04=node:16-bullseye-slim
                -P ubuntu-20.04=node:16-buster-slim
                -P ubuntu-18.04=node:16-buster-slim
        .actrc:
                -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
Build info:
        Go version:            go1.24.1
        Module path:           github.com/nektos/act
        Main version:          v0.2.76
        Main path:             github.com/nektos/act
        Main checksum:
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.76 -X main.commit=4f4913f9f34da9f349bf4f842c56e9d7f8af3729 -X main.date=2025-04-01T02:36:03Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 windows
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         4f4913f9f34da9f349bf4f842c56e9d7f8af3729
                vcs.time:             2025-04-01T02:35:41Z
                vcs.modified:         false
Docker Engine:
        Engine version:        28.1.1
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlayfs
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:
        OS arch:               x86_64
        OS kernel:             5.15.167.4-microsoft-standard-WSL2
        OS CPU:                22
        OS memory:             31823 MB
        Security options:
                name=seccomp,profile=unconfined

Command used with act

act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest

Describe issue

The following flow fails with permission denied

| /var/run/act/workflow/1-composite-0.sh: line 2: /var/run/act/actions/snok-install-poetry@v1/main.sh: Permission denied

Link to GitHub repository

No response

Workflow content

name: Test Flow

on:
    workflow_dispatch:

jobs:
    test-job:
        runs-on: ubuntu-latest
        steps:
            - name: setup-python
              uses: actions/setup-python@v5
              with:
                python-version: 3.10

            - name: setup-poetry
              uses: snok/install-poetry@v1

Relevant log output

$GITHUB_ACTION_PATH/main.sh

 to 'workflow/1-composite-0.sh'
[Test Flow/test-job] [DEBUG] Writing entry to tarball workflow/1-composite-0.sh len:29
[Test Flow/test-job] [DEBUG] Extracting content to '/var/run/act'
[Test Flow/test-job]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-0.sh] user= workdir=
[Test Flow/test-job] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-0.sh]'
[Test Flow/test-job] [DEBUG] Working directory '/mnt/c/Users/nv15r/src/act-sandbox'
| /var/run/act/workflow/1-composite-0.sh: line 2: /var/run/act/actions/snok-install-poetry@v1/main.sh: Permission denied
[Test Flow/test-job]   ❌  Failure - Main Install and configure Poetry [169.3216ms]
[Test Flow/test-job] exitcode '126': failure
[Test Flow/test-job] [DEBUG] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: C:\Users\nv15r\src\act-sandbox): remote not found
[Test Flow/test-job] [DEBUG] Loading revision from git directory
[Test Flow/test-job] [DEBUG] Found revision: 03d7ea97beda6aabca32fea84f04fcf7ab27cd24
[Test Flow/test-job] [DEBUG] HEAD points to '03d7ea97beda6aabca32fea84f04fcf7ab27cd24'
[Test Flow/test-job] [DEBUG] using github ref: refs/heads/master
[Test Flow/test-job] [DEBUG] Found revision: 03d7ea97beda6aabca32fea84f04fcf7ab27cd24
[Test Flow/test-job]   ❌  Failure - Main setup-poetry [452.6487ms]
[Test Flow/test-job] exitcode '126': failure
[Test Flow/test-job] [DEBUG] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: C:\Users\nv15r\src\act-sandbox): remote not found
[Test Flow/test-job] [DEBUG] Loading revision from git directory
[Test Flow/test-job] [DEBUG] Found revision: 03d7ea97beda6aabca32fea84f04fcf7ab27cd24
[Test Flow/test-job] [DEBUG] HEAD points to '03d7ea97beda6aabca32fea84f04fcf7ab27cd24'
[Test Flow/test-job] [DEBUG] using github ref: refs/heads/master
[Test Flow/test-job] [DEBUG] Found revision: 03d7ea97beda6aabca32fea84f04fcf7ab27cd24
[Test Flow/test-job] [DEBUG] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: C:\Users\nv15r\src\act-sandbox): remote not found
[Test Flow/test-job] [DEBUG] Loading revision from git directory
[Test Flow/test-job] [DEBUG] Found revision: 03d7ea97beda6aabca32fea84f04fcf7ab27cd24
[Test Flow/test-job] [DEBUG] HEAD points to '03d7ea97beda6aabca32fea84f04fcf7ab27cd24'

Additional information

works on gh-runners

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions