Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

OSPS-AC-04.01 scans workflow files, but the requirement is the platform's default workflow permission

Đang mở
#512 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
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, python
Lĩnh vực
ci-cd, security

Hướng nghiên cứu

Start by reading the existing pattern step that scans .github/workflows/*.yml and how the check reports results. Then investigate the GitHub workflow-permissions API and how repository settings inherit organization defaults; treat 401/403 as could-not-measure, not FAIL. Done when the check measures the platform default (including inherited settings) while retaining the workflow scan as supporting evidence.

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

Mô tả

module-baseline

OSPS-AC-04.01 (Maturity Level 2, 3) reads:

When a CI/CD task is executed with no permissions specified, the CI/CD system MUST default the task's permissions to the lowest permissions granted in the pipeline.

This is a platform setting: on GitHub, the repository or organization default for GITHUB_TOKEN permissions (GET /repos/{owner}/{repo}/actions/permissions/workflow -> default_workflow_permissions, expected read). darnit instead runs a pattern step over .github/workflows/*.yml, which measures what workflows declare, not what the platform does for a workflow that declares nothing.

Suggested direction: check default_workflow_permissions == "read" via the platform API (org-level setting as well where the repository inherits it), and treat 401/403 as could-not-measure rather than FAIL. The workflow scan can remain as supporting evidence.

Ngôn ngữ chính
Python
Star
22
Fork
27
Merge trung bình
2 ngày 28 phút
Pull request đã merge (30 ngày)
40

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 darnitdevorg/darnit

Tất cả issue của darnitdevorg/darnit

Issue tương tự

Thêm issue về Python

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.