sha256:dd3ab41c1724534d99962ffb5db61b8e4fefc7b41b949a0644db906e1dbb0cff
Last pushed
about 1 month by dockerpublicbot
Type
Sandbox Kit
Manifest digest
sha256:dd3ab41c1724534d99962ffb5db61b8e4fefc7b41b949a0644db906e1dbb0cff
schemaVersion: "2"
kind: mixin
name: vale
displayName: Vale
description: Installs the Vale prose linter from a pinned GitHub release.
agentInstructions:
content: |
## Vale prose linter
The `vale` CLI is installed and available on `PATH`. Use it to lint
prose in Markdown, AsciiDoc, reStructuredText, and other text formats.
Run `vale --version` to confirm, and `vale <file>` to lint a file.
permissions:
network:
allow:
- github.com
- objects.githubusercontent.com
- release-assets.githubusercontent.com
setup:
install:
- command: |
set -euo pipefail
VALE_VERSION=3.14.2
ARCH=$(dpkg --print-architecture)
case "$ARCH" in
amd64)
TARBALL="vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
SHA256="469cf88ec58a374dca14b2564c4391d2c9a1c632210aa0b642758b794082e05f"
;;
arm64)
TARBALL="vale_${VALE_VERSION}_Linux_arm64.tar.gz"
SHA256="b11fa9955b93814f993442568b9b922604cc4b574643037b84900e9514860802"
;;
*)
echo "unsupported arch: $ARCH" >&2
exit 1
;;
esac
curl --proto '=https' --tlsv1.2 -fsSL \
-o /tmp/vale.tgz \
"https://github.com/vale-cli/vale/releases/download/v${VALE_VERSION}/${TARBALL}"
echo "${SHA256} /tmp/vale.tgz" | sha256sum -c -
tar -C /usr/local/bin -xzf /tmp/vale.tgz vale
rm /tmp/vale.tgz
vale --version
user: "0"
description: Install pinned Vale CLI