Feature Request: Granular control over workflow validation diagnostics
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- github-actions, typescript
研究方向
首先檢視擴充功能目前如何產生 context-access、expression、schema 及其他驗證診斷,然後將這些路徑與提議的設定進行比較。完成條件應包括一個已達成共識的設定模型,讓使用者能夠啟用驗證,並控制或抑制診斷類別,同時不必停用 GitHub Actions 的語言功能。
由索引模型根據 Issue 內容生成。
描述
Problem
The extension currently provides no user-configurable settings to control which validation diagnostics are shown in the Problems panel. Users cannot suppress specific categories of warnings/errors without disabling the extension entirely or changing file associations to plain YAML (losing all GitHub Actions language features).
Current Behavior
The extension surfaces diagnostics like:
Context access might be invalid: <VAR_NAME>(severity: hint)- Expression validation errors
- Schema validation warnings
These are generated for valid workflow patterns (e.g., outputs set via $GITHUB_OUTPUT and referenced in subsequent jobs) that the static analyzer cannot fully resolve.
Example
jobs:
build:
outputs:
version: ${{ steps.version.outputs.DF_VERSION }}
steps:
- id: version
run: echo "DF_VERSION=$(cat VERSION)" >> $GITHUB_OUTPUT
deploy:
needs: build
steps:
- run: echo "Deploying ${{ needs.build.outputs.DF_VERSION }}"
# ⚠️ "Context access might be invalid: DF_VERSION"
The warning is a false positive—the workflow is correct, but the extension cannot trace the dynamic output.
Requested Feature
Add granular settings to control validation behavior, for example:
{
"github-actions.validation.enabled": true,
"github-actions.validation.severity": {
"context-access": "ignore", // or "hint" | "warning" | "error"
"unknown-action": "warning",
"deprecated-command": "hint",
"schema": "error",
"expression": "warning"
}
}
Alternatively, a simpler approach:
{
"github-actions.validation.suppressedRules": [
"context-access",
"deprecated-command"
]
}
Benefits
- Users can tailor validation to their workflow patterns
- Reduces noise from false positives without losing useful diagnostics
- Aligns with patterns in other linting extensions (ESLint, Pylint, etc.)
Workaround (Current)
The only workaround is to change file associations:
"files.associations": {
".github/workflows/*.yml": "yaml"
}
This disables all GitHub Actions features, which is undesirable.
Environment
- Extension version: 0.29.1
- VS Code version: 1.96.x
- OS: macOS
- 主要語言
- TypeScript
- 星號
- 661
- 分支
- 214
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/vscode-github-actions 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 76/100
github/vscode-github-actions#627 · 1 個 reaction ·
-
難度 5/5 一週以上 新手友好度 20/100
github/vscode-github-actions#630 ·
-
long work 未關閉
難度 4/5 3-5 天 新手友好度 25/100
github/vscode-github-actions#628 ·
-
bug
難度 3/5 1-2 天 新手友好度 55/100
github/vscode-github-actions#625 ·
-
bug
難度 3/5 1-2 天 新手友好度 64/100
github/vscode-github-actions#621 · 3 則留言 ·
查看 github/vscode-github-actions 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
mksglu/context-mode#1200 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難度 2/5 1-3 小時 新手友好度 75/100
anthropics/claude-code#96687 ·
-
good first issue
難度 1/5 1 小時以內 新手友好度 95/100
AOSSIE-Org/DebateAI#582 · 2 則留言 ·