CLI-Tool zur Prüfung von veralteten GitHub Actions Versionen in Workflow-Dateien.
go install github.com/stefanXXX/action-version-check/cmd/action-version-check@latestOder lokal bauen:
go build -o action-version-check ./cmd/action-version-check
mv action-version-check /usr/local/bin/action-version-check [flags] <file|directory>...
# Einzelne Datei
action-version-check .github/workflows/ci.yml
# Mehrere Dateien
action-version-check .github/workflows/*.yml
# Ganzes .github Verzeichnis
action-version-check .github/| Flag | Default | Beschreibung |
|---|---|---|
--cache-ttl |
6h | Cache-TTL |
--cache-dir |
~/.cache/action-version-check | Cache-Verzeichnis |
--github-api-url |
https://api.github.com | GitHub API URL (für GHES) |
--format |
jetbrains | Output-Format: jetbrains, github, text |
--verbose |
false | Auch up-to-date Actions ausgeben |
--offline |
false | Nur Cache verwenden |
--no-cache |
false | Cache deaktivieren |
-h, --help |
Hilfe anzeigen |
/path/to/workflow.yml:12:9: actions/checkout@v3 is outdated, latest is v4.0.0
::warning file=/path/to/workflow.yml,line=12,col=9::actions/checkout@v3 is outdated, latest is v4.0.0
/path/to/workflow.yml (warning): actions/checkout@v3 is outdated, latest is v4.0.0
0: Alle Actions up-to-date1: Mindestens eine veraltete Action gefunden2: Fehler (Datei nicht lesbar, API-Fehler)
- Settings → Tools → File Watchers →
+hinzufügen - Konfiguration:
Name: action-version-check Program: /usr/local/bin/action-version-check Arguments: $FilePath$ Output filters: $FILE_PATH$:$LINE$:$COL$:$MESSAGE$ Working dir: $ProjectFileDir$ - Scope:
.github/workflows//*.yml - File Watcher Problems unter Settings → Editor → Inspections aktivieren
# .pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: action-version-check
name: Check GitHub Action versions
entry: action-version-check
language: system
files: ^\.github/workflows/.*\.ya?ml$
pass_filenames: truepre-commit install| Variable | Beschreibung |
|---|---|
GITHUB_TOKEN |
GitHub API Token (erhöht Rate-Limit auf 5000/h) |
GH_TOKEN |
Alias für GITHUB_TOKEN |
GITHUB_API_URL |
Override für API-URL (z.B. für GHES) |
Cache wird gespeichert unter:
~/.cache/action-version-check/{owner}-{repo}.json
Format:
{"latest": "v4.2.0", "fetched_at": "2026-04-27T10:00:00Z"}MIT