mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
16 lines
493 B
PowerShell
16 lines
493 B
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
|
|
param(
|
|
[string]$RepoRoot = (Join-Path -Path $PSScriptRoot -ChildPath '../..'),
|
|
[string]$Platform
|
|
)
|
|
|
|
$resolvedPath = (Resolve-Path $RepoRoot).ProviderPath
|
|
$platformParam = @()
|
|
if ($Platform) {
|
|
$platformParam = @("--platform", $Platform)
|
|
}
|
|
|
|
docker run $platformParam -e RUN_LOCAL=true --env-file "$PSScriptRoot/config/super-linter.env" -v "${resolvedPath}:/tmp/lint" ghcr.io/super-linter/super-linter:latest
|