github / github/vscode-github-actions

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

Đang mở
#96 17 bình luận 18 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
660
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github-actions, typescript, vscode
Lĩnh vực
developer-experience, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.