github / github/vscode-github-actions

"Unable to resolve action" for any action

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

描述

Every action in an .yml file gives an error `Unable to resolve action "actions/checkout@v4", repository or version not found` - even fundamental stuff like `- uses: actions/checkout@v4`

**To Reproduce**
- Make a file like this one (autogenerated by github.com):
```
name: .NET
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore

```
- Open the Problems tab in VSCode.
- Lines 9 and 11 now give an error:
```
[{
"resource": "/[repo_path]/.github/workflows/dotnet.yml",
"owner": "_generated_diagnostic_collection_name_#7",
"severity": 8,
"message": "Unable to resolve action `actions/checkout@v4`, repository or version not found",
"startLineNumber": 9,
"startColumn": 13,
"endLineNumber": 9,
"endColumn": 32
}]
```

**Expected behavior**
Expected no false errors.

**Screenshots**
Screenshot 2024-12-15 at 17 51 22

**Extension Version**
`v0.27.0`

**Additional context**
Add any other context about the problem here.

貢獻指南

開啟貢獻指南

研究方向

Reproduce the diagnostics in .github/workflows/dotnet.yml using actions/checkout@v4 and actions/setup-dotnet@v4, then trace the extension's action-resolution entry point. Confirm the fix by opening the Problems tab and verifying that valid actions no longer produce false repository or version errors.

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

評估

技術堆疊
github-actions, typescript, vscode
領域
tooling
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
52/100

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

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