action-validator icon indicating copy to clipboard operation
action-validator copied to clipboard

Doesn't detect duplicate ID

Open nyarly opened this issue 6 months ago • 3 comments

Want to help get this issue implemented? Donate to the action-validator code fund.


I went looking for this tool after GHA rejected a complex workflow with

The identifier 'generate-token-pr' may not be used more than once within the same scope.

Unfortunately, running action-validator .github/workflows/deploy-qa.yaml returns a 0 status, even though

⮀ rg 'id.*generate-token-pr' .github/workflows/deploy-qa.yaml
71:      - id: generate-token-pr
123:      - id: generate-token-pr

nyarly avatar Jun 05 '25 18:06 nyarly

Can you provide a minimal example that shows the workflow you want action-validator to reject?

mpalmer avatar Jun 05 '25 22:06 mpalmer

name: Test Build

on:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - id: twins
    - id: twins

nyarly avatar Jun 12 '25 17:06 nyarly

Thanks. That'll help validate that a PR is fixing what you want fixed.

mpalmer avatar Jun 12 '25 23:06 mpalmer