microsoft / microsoft/security-devops-azdevops

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

オープン
#129 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
86
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

MicrosoftSecurityDevOps@1 タスクの入力処理と、その IaC/Bicep スキャンのエントリポイントから始めます。チェックアウトされたファイルがどのように選択されるかを追跡し、次にパイプラインの bicepFile パラメーターを使用して、要求された直接パス入力を定義します。タスクが指定された 1 つの Bicep ファイルを、チェックアウトされた無関係なファイルをスキャンせずにスキャンできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure
領域
ci-cd, devops
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。