Skip to content

Bump step-security/harden-runner from 2.10.2 to 2.10.3 #132

Bump step-security/harden-runner from 2.10.2 to 2.10.3

Bump step-security/harden-runner from 2.10.2 to 2.10.3 #132

Workflow file for this run

name: Pester
on: push
permissions:
contents: read
jobs:
pester-tests:
name: Pester tests
runs-on: windows-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
with:
egress-policy: audit
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Perform all Pester tests from the SBOMResearcher tests directory
shell: pwsh
run: |
Set-PSRepository psgallery -InstallationPolicy trusted
Install-Module -Name Pester -Confirm:$false -RequiredVersion 5.6.1 -Force
. .\SBOMResearcher.ps1
Invoke-Pester -Script .\tests -OutputFile "./Pester.XML" -OutputFormat "NUnitXML" -Passthru -Verbose
- name: Upload test results
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: Pester-Version-Tests
path: Pester.XML
if: ${{ always() }}