style: ignore actionlint false-positive.

This commit is contained in:
Mike McQuaid 2024-06-13 09:41:16 +01:00
parent 9e863aa4a9
commit 349627e3dd
No known key found for this signature in database

View File

@ -270,8 +270,10 @@ module Homebrew
def self.run_actionlint(files) def self.run_actionlint(files)
files = github_workflow_files if files.blank? files = github_workflow_files if files.blank?
# the ignore is to avoid false positives in e.g. actions, homebrew-test-bot
system actionlint, "-shellcheck", shellcheck, system actionlint, "-shellcheck", shellcheck,
"-config-file", HOMEBREW_REPOSITORY/".github/actionlint.yaml", "-config-file", HOMEBREW_REPOSITORY/".github/actionlint.yaml",
"-ignore", "image: string; options: string",
*files *files
$CHILD_STATUS.success? $CHILD_STATUS.success?
end end