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

Allow Direct Path Specification for Bicep Files in MicrosoftSecurityDevOps@1 Task

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure
Lĩnh vực
ci-cd, devops

Hướng nghiên cứu

Bắt đầu từ việc xử lý đầu vào của task MicrosoftSecurityDevOps@1 và điểm vào quét IaC/Bicep của task đó. Truy vết cách các tệp đã checkout được chọn, sau đó xác định đầu vào đường dẫn trực tiếp được yêu cầu bằng tham số bicepFile của pipeline. Hoàn tất khi task có thể quét một tệp Bicep được chỉ định mà không quét các tệp đã checkout không liên quan.

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

Mô tả

I am using the MicrosoftSecurityDevOps@1 task in my Azure pipeline to scan Infrastructure as Code (IaC) files. My repository contains multiple Bicep modules, each located in their own subfolders. Here is a snippet of my pipeline configuration:
parameters:

  • name: serviceConnection
    type: string
  • name: resourceGroup
    type: string
  • name: bicepFile
    type: string
  • name: parametersFile
    type: string

jobs:

  • job:
    displayName: "Scan IaC Templates"
    pool:
    vmImage: windows-latest
    steps:
    • checkout: azure.infra.bicep
    • task: MicrosoftSecurityDevOps@1
      displayName: MSDO IAC
      inputs:
      categories: 'IaC'

The folder structure of my repository is as follows:
repo_name/
└── modules/
└── module-name/
└── module-name.bicep

Issue: Currently, there is no option to specify a direct path to a specific Bicep file within the MicrosoftSecurityDevOps@1 task. As a result, the tool attempts to scan absolutely all files being checked out, while I need to scan only the Bicep file specified in my parameters. This limitation makes it challenging to target individual Bicep files for scanning in repositories with complex structures and multiple modules.

Proposal: Introduce an option to specify a direct path to a specific Bicep file in the MicrosoftSecurityDevOps@1 task. This feature would allow for more targeted scanning of individual Bicep files.

Ngôn ngữ chính
TypeScript
Star
86
Fork
22
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 microsoft/security-devops-azdevops

Tất cả issue của microsoft/security-devops-azdevops

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.