github / github/vscode-github-actions

Suppress `vars` context validation in an environment set via an expression.

未關閉
#96 17 則留言 18 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
660
分支
213
PR 合併指標
30 天內沒有已合併 PR

描述

Problem:
I am using a lot of repository environment variables, access via the vars context. The plugin is raising "Context access might be invalid:" warnings on every line which makes it difficult to spot actual issues and is making me sad.

Proposed solution:

I think that this functionality isn't relevant for vars/secrets contexts because there is no way for them to be discernible by the plugin.

It would be great to be able to configure the plugin to ignore these warnings in some circumstances (such as by a string pattern or by check boxes for various contexts. Or at least to be able to turn it off globally.

**Additional context**
Related to
[https://github.com/github/vscode-github-actions/issues/67][https://github.com/github/vscode-github-actions/issues/47]

Screenshot of my minimap to show you what I'm dealing with, all the yellow lines are this warning!

![Screenshot 2023-04-07 110338](https://user-images.githubusercontent.com/16304586/230579635-eacf24de-a04c-4f0b-9b0c-cedfc0191c9e.png)

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing the vars-context validation warnings described in the issue and read the linked issues #67 and #47 for existing decisions. Identify where validation emits these warnings and define a configurable suppression behavior; done means the selected warnings no longer appear while other context warnings remain visible.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github-actions, typescript, vscode
領域
developer-experience, tooling
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。