Skip to content

Action is not compatible with self-hosted runners #71

@mark-ferrari

Description

@mark-ferrari

Action fails when running on self-hosted runners:

Run github/accessibility-scanner@v2.4.0
  with:
    urls: https://www.my-site.com/
    repository: my-org/my-repo
    token: ***
    cache_key: my-org/my-repo
    skip_copilot_assignment: false
  env:
    AWS_DEFAULT_REGION: eu-west-1
    AWS_REGION: eu-west-1
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
    AWS_SESSION_TOKEN: ***
Run mkdir -p /home/runner/work/_actions/current/.github/actions
  mkdir -p /home/runner/work/_actions/current/.github/actions
  rsync -a .github/actions/ /home/runner/work/_actions/current/.github/actions/
  ls -ltra /home/runner/work/_actions/current/.github/actions
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    AWS_DEFAULT_REGION: eu-west-1
    AWS_REGION: eu-west-1
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
    AWS_SESSION_TOKEN: ***
total 0
drwxr-sr-x. 6 runner runner  60 Nov 12 11:25 gh-cache
drwxr-sr-x. 3 runner runner 138 Nov 12 11:25 find
drwxr-sr-x. 3 runner runner 138 Nov 12 11:25 file
drwxr-sr-x. 3 runner runner 138 Nov 12 11:25 auth
drwxr-sr-x. 3 runner runner 138 Nov 12 11:25 fix
drwxr-sr-x. 7 runner runner  69 Nov 12 11:25 .
drwxr-xr-x. 3 runner runner  21 Nov 12 11:25 ..
Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/_work/_actions/current/.github/actions/gh-cache/cache'. Did you forget to run actions/checkout before running your local action?

This seems to have been overlooked in previous PR feedback - #59 (comment)

Notice the difference in paths: /home/runner/_work/ vs /home/runner/work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions