`not found in this repository` when branch renamed before action runs
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 38/100
研究方向
從 issue 中連結的 workflow run 開始,檢查 repository-fetch step,尤其是針對 refs/remotes/origin/patch-1 的 git fetch 命令。重現建立 commit、觸發 workflow,並在執行前重新命名 branch 的順序;當 run 仍能解析原始 branch 或 commit,而不是回報 ref 遺失時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
#1572 has the same error message, but is for a more interesting case.
Here, I used github's editor to create a commit, it automatically created a patch-1. That triggered a workflow:
https://github.com/jsoref/pdns/actions/runs/4486688011
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +46056980cc77a5a76310b821f7d851913efcb51d:refs/remotes/origin/patch-1
...
ref 'refs/heads/patch-1' not found in this repository
As soon as I created the commit, I visited https://github.com/jsoref/pdns/branches and renamed the branch.
It isn't unreasonable for a flow like this to happen (I wasn't trying to break my own workflow, it's just a flow I take regularly).
Expected results: Ideally the action should be able to find the branch from the point in time when the workflow started and properly resolve things instead of from when the action itself starts running. There's nothing wrong w/ a workflow wanting to have a sarif report about a branch even if the branch is no longer...
- 主要語言
- TypeScript
- 星號
- 1.6k
- 分支
- 493
- 平均合併
- 1 天 13 小時
- 30 天內合併 PR
- 44
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/codeql-action 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
github/codeql-action#4052 · 4 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 則留言 ·
-
難度 4/5 3-5 天 新手友好度 52/100
github/codeql-action#3978 · 4 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 48/100
github/codeql-action#3915 · 6 則留言 · 3 個 reaction ·
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
blocklist removal
難度 2/5 1-3 小時 新手友好度 65/100
MetaMask/eth-phishing-detect#296544 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
pastelsky/bundlephobia#1122 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100