-SaveDscDependency does not work on Microsoft-hosted 'ubuntu-latest' agents
還沒有人認領這個 Issue。
評估
研究方向
首先,在 Microsoft 託管的 ubuntu-latest 代理程式上執行帶有 -SaveDscDependency 的 Invoke-ScriptAnalyzer,並使用回報的 DSC 模組和 RestrictRDPForLocalAccounts.ps1 將其與 windows-latest 進行比較。完成的標準是 DSC 模組已下載,且指令碼檔案掃描時不再出現回報的剖析錯誤。
由索引模型根據 Issue 內容生成。
描述
Steps to reproduce
Invoke-ScriptAnalyzer -Path . -Recurse -ReportSummary -SaveDscDependency -EnableExit
We have some new scripts which rely on DSC modules (for example 'nxtools', 'PSDscResources' and 'SecurityPolicyDSC'). RestrictRDPForLocalAccounts.ps1 is one of the PowerShell script files that used DSC modules. While executing the PSScriptAnalyzer scan with the -SaveDscDependency option on the Microsoft-hosted 'ubuntu-latest' agents in our CI/CD pipeline, the DSC modules are not saved:
The same command works fine on Microsoft-hosted 'windows-latest' agents:
Expected behavior
The DSC modules are downloaded and the script files are scanned the same way as on Windows.
Actual behavior
The DSC modules are not downloaded and the scan list parse errors.
Environment data
Microsoft-hosted 'ubuntu-latest' agents
PowerShell 7.4.7
PSScriptAnalyzer: 1.24.0
- 主要語言
- C#
- 星號
- 2.2k
- 分支
- 416
- 平均合併
- 13 小時 1 分鐘
- 30 天內合併 PR
- 2
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PowerShell/PSScriptAnalyzer 的其他 Issue
-
Up-for-Grabs
難度 1/5 1-3 小時 新手友好度 78/100
PowerShell/PSScriptAnalyzer#2213 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 48/100
PowerShell/PSScriptAnalyzer#2220 ·
-
難度 3/5 1-2 天 新手友好度 55/100
PowerShell/PSScriptAnalyzer#2219 ·
-
難度 3/5 1-2 天 新手友好度 72/100
PowerShell/PSScriptAnalyzer#2218 ·
-
難度 3/5 1-2 天 新手友好度 72/100
PowerShell/PSScriptAnalyzer#2217 · 1 則留言 ·
查看 PowerShell/PSScriptAnalyzer 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
lay295/TwitchDownloader#1675 ·
-
copilot documentation
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
space-wizards/RobustToolbox#7119 ·
維護者通常 1 天內回覆
-
Bug
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 4 天內回覆
-
.NET Bug Waiting for: Product Owner
難度 2/5 1-3 小時 新手友好度 78/100
getsentry/sentry-dotnet#5666 · 2 則留言 ·
維護者通常 2 天內回覆