Error while uploading SARIF file using action github/codeql-action/upload-sarif
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- github-actions, typescript
研究方向
先檢查 trivy_report.sarif 和 upload-sarif@v3 的處理輸出,著重於錯誤所參照的 artifact location 資料。將 SARIF 結構與連結的 SARIF 支援文件進行比較,並判斷哪個 location 被拒絕。完成的標準是報告被接受,並在 code scanning 中完成處理且不發生 locationFromSarifResult 失敗。
由索引模型根據 Issue 內容生成。
描述
Hello expert,
I am trying to upload a SARIF file generated by a trivy scan. Whereas the SARIF file is generated, the upload of the file in the security tab failed with the message:
Run github/codeql-action/upload-sarif@v3
with:
sarif_file: trivy_report.sarif
checkout_path: /home/runner/work/aws-htc-grid/aws-htc-grid
token: ***
matrix: null
wait-for-processing: true
env:
TRIVY_REPORT_FILE: trivy_report.sarif
ACTIONS_STEP_DEBUG: true
Uploading results
Processing sarif files: ["trivy_report.sarif"]
Validating trivy_report.sarif
Combining SARIF files using the CodeQL CLI
Adding fingerprints to SARIF file. See https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs for more information.
Uploading results
Successfully uploaded results
Waiting for processing to finish
Analysis upload status is pending.
Analysis upload status is failed.
Error: Code Scanning could not process the submitted SARIF file:
locationFromSarifResult: expected artifact location
Do you have any clues what could be wrong with my SARIF files or how to improve observability of the action ?
- 主要語言
- TypeScript
- 星號
- 1.7k
- 分支
- 495
- 平均合併
- 1 天 2 小時
- 30 天內合併 PR
- 47
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/codeql-action 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
github/codeql-action#4052 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4185 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4173 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 則留言 ·
維護者通常 1 天內回覆
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 86/100
tomjn/coilbox-hub#454 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
api: spanner
難度 2/5 1-3 小時 新手友好度 78/100
googleapis/google-cloud-node#9513 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 92/100
維護者通常 1 天內回覆
-
SegmentedControl calls Math.random() during render, breaking Next.js cacheComponents prerendering未關閉
難度 2/5 1-3 小時 新手友好度 76/100
mantinedev/mantine#9244 ·
維護者通常 8 天內回覆