actions / actions/runner

Improve `may not be used more than once within the same scope.` to identify the location of the other instance

Open
#3,121 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
The other occurrence of the identifier isn't provided. It would be helpful for reporting a bug to the action vendor (especially if the action is private and the person who triggers the workflow can't access it).

To Reproduce
Steps to reproduce the behavior:

  1. Create an action where you have two steps with the same id
  2. Create a workflow that uses the action
  3. Trigger the workflow

Expected behavior
Provide line and column number references for both instances of the duplicated identifier.

Runner Version and Platform

Version of your runner? 2.312.0

OS of the machine running the runner? Linux

What's not working?

https://github.com/jsoref/check-spelling/actions/runs/7717561606
Please include error messages and screenshots.

Job Log Output

spelling/./action.yml (Line: 469, Col: 11): The identifier 'retrieve-comment-matrix-replacement' may not be used more than once within the same scope.
Check Spelling
GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. /home/runner/work/check-spelling/check-spelling/./action.yml (Line: 469, Col: 11): The identifier 'retrieve-comment-matrix-replacement' may not be used more than once within the same scope.
   at GitHub.DistributedTask.ObjectTemplatin

Runner and Worker's Diagnostic Logs

If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

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

Reproduce the duplicate-step-id case using the action.yml example and the workflow described in the issue, then inspect the runner's validation path and relevant diagnostic output. Done means the validation error identifies both occurrences of the duplicated identifier with line and column references.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
ci-cd, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.