Add extra details in the results (workflow, job, step)
まだ誰も着手していません。
評価
調査の方向性
まず、Issue の unpinnable-action クエリを参照ケースとして、既存のクエリ結果が報告される出力にどのように変換されるかを追跡します。脆弱な URL がどこでレンダリングされるかを特定し、workflow、job、step の値をどのように引き継げるかを判断します。既存の詳細情報に加えて、呼び出し元 workflow の URL、job 名、step 名がレポートに含まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
At the moment when results are reported, the report only includes the offending sink workflow/action file. For instance, if you run Raven against microsoft/graphrag one of the results will be:
Name: Unpinnable Action
Severity: low
Description: Unpinnable actions can lead to software supply chain attacks.
Tags: ['supply-chain', 'best-practice']
Workflow URLS:
- https://github.com/pypa/gh-action-pypi-publish/tree/unstable/v1/action.yml
That workflow URL does not belong to microsoft/graphrag which makes is difficult to answer "what do I need to fix, and where do I find what's calling this?"
Describe the solution you'd like
It would be nice if the following information would be displayed as well:
- Caller Repo Workflow Url
- Job Name
- Step Name
For instance, the unpinnable-action query from:
MATCH (ca:CompositeAction)
WHERE (
ca.using = "docker" AND (
NOT ca.image CONTAINS "@sha256:"
)
)
RETURN DISTINCT ca.url AS url;
would become
MATCH (w:Workflow)-[*]->(j:Job)-[*]->(s:Step)-[*]->(ca:CompositeAction)
WHERE (
ca.using = "docker" AND (
NOT ca.image CONTAINS "@sha256:"
)
)
RETURN DISTINCT ca.url AS vulnerable_url, w.path AS workflow_url, j.name AS job, s.name AS step
Additional context
I'm happy to submit a PR for this, but thought to raise this issue as it will include a significant refactor of the existing code to accommodate it.
- 主要言語
- Python
- スター
- 748
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CycodeLabs/raven のほかの issue
-
`library` folder not included in the source distribution対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンquery-library
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CycodeLabs/raven#183 · コメント 2 件 ·
-
报错オープン
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
CycodeLabs/raven#199 ·
-
feature
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CycodeLabs/raven#119 · コメント 6 件 ·
-
feature indexer
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
CycodeLabs/raven#114 ·
-
Add option to scan a specific repo対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdownloader feature good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
CycodeLabs/raven#109 · コメント 2 件 · リアクション 1 件 ·
CycodeLabs/raven の issue をすべて見る
似ている issue
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ramnes/notion-sdk-py#409 ·
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lindicaphxag-tech/kaggle#28 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
BSData/horus-heresy-3rd-edition#3211 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug tests
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信