action-validator
action-validator copied to clipboard
Doesn't detect duplicate ID
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
Can you provide a minimal example that shows the workflow you want action-validator to reject?
name: Test Build
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: twins
- id: twins
Thanks. That'll help validate that a PR is fixing what you want fixed.