github / github/vscode-github-actions

Input key checks are unnecessarily case-sensitive

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
660
Forks
213
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
There are a lot of contexts whose possible input keys are case insensitive. For example, both `secrets.BANANA` and `secrets.banana` work just fine (from the [github secrets docs](https://docs.github.com/en/actions/security-guides/encrypted-secrets#naming-your-secrets): "Names are not case-sensitive."). This applies to secrets, with blocks, and many more. The extension currently erroneously reports an error when not using the same casing as the definition

**To Reproduce**
Steps to reproduce the behavior:
1. Create repo secret called "BANANA"
2. Use secret via secrets.banana

**Expected behavior**
No error is reported

**Screenshots**
![image](https://github.com/github/vscode-github-actions/assets/45497981/dcb25ab1-1dba-4757-b10e-549d77498181)

**Extension Version**
`v0.25.4`

**Additional context**
-

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.