github / github/codeql

False positive in CWE-829 /UntrustedCheckoutMedium.ql

未關閉
#21,823 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
false-positive
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

**Description of the false positive**
When there is a workflow that is triggered by a pull_request, this check considers the called workflow to be privileged even though it is not.

**Code samples or links to source code**

Triggered Workflow: https://raw.githubusercontent.com/llvm/llvm-project/refs/heads/main/.github/workflows/release-binaries-all.yml
Called Workflow: https://raw.githubusercontent.com/llvm/llvm-project/refs/heads/main/.github/workflows/release-binaries.yml

**URL to the alert on GitHub code scanning (optional)**

https://github.com/llvm/llvm-project/security/code-scanning/1828

貢獻指南

開啟貢獻指南

研究方向

從 CWE-829 /UntrustedCheckoutMedium.ql 查詢開始,檢查報告中連結的 triggered workflow 和 called workflow 範例。將查詢結果與 pull_request-triggered workflow 的行為以及連結的 code-scanning alert 進行比較。完成的標準是 called workflow 不再被錯誤地報告為具有特權。

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

評估

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

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

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