Files
computer-playbook/scripts/lint/action.sh
kevinveenbirkenbachandClaude Opus 5 11ee28aa66 fix(ci): make act and actionlint accept queue
GitHub shipped the concurrency queue property on 2026-05-07. actionlint 1.7.12 and act v0.2.89 both predate it: actionlint reports an unexpected key, act refuses to parse the whole workflow. Ignore the finding in the lint call, and hand act a copy with those lines stripped so local iteration survives once the workflows use the key.

Refs: rhysd/actionlint#654, nektos/act#6095, nektos/act#6152

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 17:05:50 +02:00

19 lines
704 B
Bash
Executable File

#!/usr/bin/env bash
# shellcheck shell=bash
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd -- "${SCRIPT_DIR}/../.." && pwd)"
cd "${REPO_ROOT}"
# Exception: actionlint 1.7.12 rejects the `queue` concurrency property that
# GitHub shipped on 2026-05-07; its schema predates the key.
# TODO: drop the queue ignore once actionlint knows it --
# https://github.com/rhysd/actionlint/issues/654.
actionlint \
-ignore 'input "client-id" is not defined in action "actions/create-github-app-token' \
-ignore 'missing input "app-id" which is required by action "actions/create-github-app-token' \
-ignore 'unexpected key "queue" for "concurrency" section'