Add a `sarif-out` input for code scanning

Đang mở
#21 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, javascript
Lĩnh vực
devtools

Hướng nghiên cứu

Start with src/action.js, src/sarif.js, and test/sarif.test.js to trace how findings are read and how the action handles inputs. Implement the sarif-out flow across the listed files, then run npm test -- test/sarif.test.js. Done means the output validates as SARIF 2.1.0, contains a rule and result for each finding, preserves file paths and lines, and the README documents the upload step.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement wave

Context

Annotations disappear once a pull request is merged. A SARIF file uploaded to GitHub code scanning keeps findings in the Security tab and gives the team a history.

Scope

  • action.yml
  • src/action.js
  • src/sarif.js
  • test/sarif.test.js
  • README.md

Acceptance criteria

  • sarif-out writes a SARIF 2.1.0 file with one rule per finding rule and one result per finding.
  • Locations use the file path and line already in the finding.
  • The file validates against the SARIF schema.
  • The README shows the upload step with github/codeql-action/upload-sarif.

Verification

npm test -- test/sarif.test.js

Complexity

Large (1-2 days)

Part of Stellar Wave. Comment to claim this issue before starting.

Ngôn ngữ chính
JavaScript
Star
0
Fork
0
Merge trung bình
7 giờ 28 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codepacct/codepact-action

Tất cả issue của codepacct/codepact-action

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.