Skip to content

Identification of outdated actions, invald syntax etc. #173

Description

@mbruns91

While trying to find a way to nicely validate #172, I came across the actionlint tool. Can be installed via homebrew and from conda-forge - did not know about it before. It's a static checker for GitHub Actions workflow files provided here. Usage is straight forward: from any repo root, you run actionlint and the tool will lint existing workflow files.

When applied on pyiron/actions I get this output:

$ actionlint
.github/workflows/codeql.yml:35:13: the runner of "github/codeql-action/init@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
   |
35 |       uses: github/codeql-action/init@v2
   |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.github/workflows/codeql.yml:40:13: the runner of "github/codeql-action/analyze@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
   |
40 |       uses: github/codeql-action/analyze@v2
   |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hinting that the the codeql action is outdated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions