Skip to content

Commit 588964e

Browse files
authored
Update windriver-build.yml
1 parent 2034a81 commit 588964e

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/windriver-build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ master ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: windows-2022
@@ -14,7 +17,14 @@ jobs:
1417
configuration: [Release]
1518
platform: [x64]
1619
steps:
17-
- uses: actions/checkout@v4
20+
- name: Harden Runner
21+
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
22+
with:
23+
egress-policy: audit
24+
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
with:
27+
submodules: recursive
1828

1929
- name: Setup MSBuild
2030
uses: microsoft/setup-msbuild@v2
@@ -26,6 +36,4 @@ jobs:
2636
run: nuget restore src\WinMSRDriver\MSR.vcxproj
2737

2838
- name: Build
29-
run: msbuild src\WinMSRDriver\MSR.vcxproj /m /t:Build ^
30-
/p:Configuration=${{ matrix.configuration }} ^
31-
/p:Platform=${{ matrix.platform }}
39+
run: msbuild src\WinMSRDriver\MSR.vcxproj /m /t:Build /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}

0 commit comments

Comments
 (0)