Skip to content

Support YAML anchors and aliases #405

@harrydowning

Description

@harrydowning

Is your feature request related to a problem? Please describe.
Once github actions supports anchors and aliases (see actions/runner#1182) this extension will need to be updated accordingly. Currently, using anchors and aliases results in errors:

image

Describe the solution you'd like
Using anchors and aliases should not result in these linting errors.

Additional context

name: pipeline

on: push

jobs:
  job1:
    runs-on: ubuntu-latest
    env: &env
      ENV1: env1
      ENV2: env2
    steps:
      - run: exit 0
  job2:
    runs-on: ubuntu-latest
    env: *env
    steps:
      - run: exit 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog 🗒

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions