Proposal: a Starlark extractor for CodeQL
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Read the proposal and the linked starlark-analyze project to understand its checker and SARIF output. The issue asks maintainers to decide whether a Starlark extractor is in scope and what it should cover; it does not request implementation. Done means maintainers answer those scope questions and clarify whether external SARIF upload is the supported path.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Proposal: a Starlark extractor for CodeQL
Starlark (Tiltfile, Bazel BUILD and .bzl files, and other Starlark-based configuration) has no CodeQL extractor. The language stats for this repo count Starlark only because of Bazel .bzl files in misc/ and the tree. As a result, Starlark-based configuration gets no static analysis on GitHub.
Flisk (the Tilt-based local stack tool) uses Starlark for its Tiltfiles and *.star configuration. We have a working, stdlib-only checker that reports the following through SARIF 2.1.0:
- unpinned remote
load() local_resourcecommands built by string concatenation- literal secrets assigned in Starlark
- file reads that leave the project root
The checker is at https://github.com/flisk-sh/starlark-analyze. It parses with Python's ast module because Starlark is a Python subset, so it is not an extractor and does not model Starlark's semantics.
Questions for maintainers
- Is a Starlark extractor on the roadmap, or is this out of scope for CodeQL?
- If it is in scope, what would a minimal extractor need to cover first:
Tiltfiledialect,load()resolution, or.bzlfor Bazel? - If not, would you accept SARIF from an external analyzer via
github/codeql-action/upload-sarifas the supported path?
I'm happy to contribute test cases and the rule definitions from that repo. I'm not asking for a merge into CodeQL.
- Ngôn ngữ chính
- CodeQL
- Star
- 10.2k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 130
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/codeql
-
JavaScript externs model StorageEvent() with no type argumentCó thể đã có người làm @asgerf đã nhận 7 ngày trước. Đang mởfalse-positive javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
github/codeql#22632 · 3 bình luận · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add AlertSuppression.ql for Rust (inline // codeql[...] suppression)Có thể đã có người làm @cnuss đã nhận 208 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github/codeql#21637 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
false-positive
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
github/codeql#21076 · 3 bình luận · 3 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
github/codeql#22883 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
github/codeql#22882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của github/codeql
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Pal-AI-Lab/Coopanion#469 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug raised-by:desk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
medici-finance/assay#4723 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
scan framework and scan control accept empty and whitespace-only policy names in Args validationCó thể đã có người làm @WKr1shna đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
cve-candidate cve-response
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
sattyamjjain/agent-airlock#387 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
www.goal.comĐang mởN: AdGuard Browser Extension P1: Critical T: Anti Adblock Script
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
AdguardTeam/AdguardFilters#245582 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày