actions / actions/languageservices
`Context access might be invalid:` is too aggressive
Open
@ericsciple is already working on this.
Since Dec 7, 2025.
- Dominant language
- TypeScript
- Stars
- 193
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
If I write some yaml like this:
with:
ssh_key: '${{ '' || secrets.CHECK_SPELLING || '' }}'
(The leading '' || has no value, but the point is regardless of how cautious one tries to be, this warning complains unequivocally.)
I get:
It might be true that the access might be invalid, but the expression as written accepts that fact, and GitHub's design doesn't offer an alternative, so, given that something like this is more or less exactly what GitHub wants people to do.
Doing what a designer wants you to do should not generate an error nor a warning.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.