Skip to content

v2 tag interferes with v2 branch when using actionlint #985

@jrfnl

Description

@jrfnl

When using actionlint workflow verification, actionlint reports that the github-token input doesn't exist.

That's nonsense of course, but looks to be because there is both a v2 branch (which is up to date) and a v2 tag (which is way behind at the 2.12.0 release).

Would it make sense to update the v2 tag to be equal to the latest release ? Or to even remove the v2 tag ?

The issue can be reproduced with a workflow which contains the following:

      - name: Install PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 'latest'
          github-token: ${{ secrets.GITHUB_TOKEN }}

And then running the following job:

  actionlint:
    name: 'Actionlint'
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Add problem matcher
        shell: bash
        run: |
          curl -o actionlint-matcher.json https://raw.githubusercontent.com/rhysd/actionlint/main/.github/actionlint-matcher.json
          echo "::add-matcher::actionlint-matcher.json"

      - name: Check workflow files
        uses: docker://rhysd/actionlint:latest
        with:
          args: -color

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions