/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/actions/build/ci/action.yml
40 строк
1 KB
StepSecurity Bot
[StepSecurity] ci: Harden GitHub Actions (#27201)
08 апр 2026, 00:13
Не верифицирован
08 апр 2026, 00:13
34375e9
Код
Авторство
О чём код?
name: CI Build description: 'Builds PowerShell' runs: using: composite steps: - name: Capture Environment if: success() || failure() run: |- Import-Module .\tools\ci.psm1 Show-Environment shell: pwsh - name: Set Build Name for Non-PR if: github.event_name != 'PullRequest' run: Write-Host "##vso[build.updatebuildnumber]$env:BUILD_SOURCEBRANCHNAME-$env:BUILD_SOURCEVERSION-$((get-date).ToString("yyyyMMddhhmmss"))" shell: pwsh - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 with: global-json-file: ./global.json - name: Bootstrap if: success() run: |- Write-Verbose -Verbose "Running Bootstrap..." Import-Module .\tools\ci.psm1 Invoke-CIInstall -SkipUser Write-Verbose -Verbose "Start Sync-PSTags" Sync-PSTags -AddRemoteIfMissing Write-Verbose -Verbose "End Sync-PSTags" shell: pwsh - name: Build if: success() run: |- Write-Verbose -Verbose "Running Build..." Import-Module .\tools\ci.psm1 Invoke-CIBuild shell: pwsh - name: Upload build artifact uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: build path: ${{ runner.workspace }}/build