actions / actions/runner

"`pre` execution is not supported for local action from '{repoAction.Path}'" should correctly specify which action is triggering it

Open
#3,397 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

https://github.com/actions/runner/blob/2a7f327d93fb79326c974f4858ce62c3b81c580a/src/Runner.Worker/ActionRunner.cs#L108

https://github.com/check-spelling-sandbox/playwright/actions/runs/10011307718

ubuntu-22.04 (chromium - Node.js 22)pre execution is not supported for local action from './.github/actions/run-test'
 
ubuntu-22.04 (chromium - Node.js 22)
pre execution is not supported for local action from './.github/actions/run-test'

This is the workflow:
https://github.com/microsoft/playwright/blob/b8546eb35ea23c735be656b5675988cbc5486c7b/.github/workflows/tests_primary.yml

And This is the blamed file and if you search for pre: you will not find it:
https://github.com/microsoft/playwright/blob/185cc43dbf8dee8f31e10205c136c66dc4efb6a0/.github/actions/run-test/action.yml

The cause is in fact:
https://github.com/microsoft/playwright/blob/185cc43dbf8dee8f31e10205c136c66dc4efb6a0/.github/actions/run-test/action.yml#L75

Which pulls in:
https://github.com/Azure/login/blob/e1a0ade0c10e6fce656e01e74e6ca3c5054a0907/action.yml#L42

Which was added by:
https://github.com/Azure/login/pull/384

But 99% of playwright users won't know to blame Azure login for it because the message reported by actions/runner doesn't finger Azure/login.

Note that I was lucky, the workflow had one composite action which in turn only had four uses: lines, one of which was yet another composite action, but thankfully that didn't itself use any additional actions.

Composite actions can pull in other actions to a depth of around 6 iirc and there can easily be 6 uses: lines. It could have been much worse.

Asks:

  1. Provide a full chain to the action pre:
  2. Include line numbers for each thing in the chain

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/Runner.Worker/ActionRunner.cs around line 108 and follow the composite-action chain shown in the linked workflow and action.yml files, including the Azure/login reference. Verify the reported pre action and its source line, then make the error identify the full chain with line numbers and confirm it against the linked workflow run.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.