Document that `pull_request` can upload SARIF without `security-events: write`

Đang mở Phù hợp với người mới
#47,120 1 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ó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
86/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, github-actions
Lĩnh vực
documentation

Hướng nghiên cứu

Cập nhật mục “Ai có thể sử dụng tính năng này?” trong bài viết về các tùy chọn cấu hình workflow quét mã được nêu trong issue. Đọc hướng dẫn khắc phục sự cố được liên kết và so sánh hành vi của pull_request với các ví dụ push và schedule yêu cầu security-events: write. Công việc hoàn tất khi bài viết nêu rõ rằng các lần chạy pull_request có thể tải SARIF lên mà không cần quyền đó, kể cả với pull request từ fork.

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

Mô tả

content driver persona
Code of Conduct
What article on docs.github.com is affected?

https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options

What part(s) of the article would you like to see updated?

Who can use this feature?
Users with write access if advanced setup is already enabled

To mention that pull_requests magically have security-events: write or something functionally equivalent to it.

Additional information

https://docs.github.com/en/code-security/reference/code-scanning/troubleshoot-analysis-errors/resource-not-accessible#confirming-the-cause-of-the-error

Confirming the cause of the error
If you're using Dependabot in your code scanning workflow, investigate the scope it's using.

Uploading code scanning results for a branch usually requires the security-events: write scope. However, code scanning always allows the uploading of results when the pull_request event triggers the action run. This is why, for Dependabot branches, we recommend you use the pull_request event instead of the push event.


Hallucinations follow:

Ngôn ngữ chính
TypeScript
Star
21.6k
Fork
69.7k
Merge trung bình
8 giờ 11 phút
Pull request đã merge (30 ngày)
100

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

Mở trong Codespaces

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.

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 github/docs

Tất cả issue của github/docs

Issue tương tự

Thêm issue về TypeScript

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.