Skip to content

Commit 8bee5a9

Browse files
authored
Security hardening (microsoft#1383)
- Move security-events to job-level in PSSriptAnalyzer workflow - Add Harden Runner to RemoveRepositories job
1 parent 1c9e714 commit 8bee5a9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/CleanupTempRepos.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ jobs:
6060
runs-on: [ ubuntu-latest ]
6161
needs: [ Check ]
6262
steps:
63+
- name: Harden Runner
64+
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
65+
with:
66+
egress-policy: audit
67+
6368
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6469

6570
- name: Remove Temp Repositories

.github/workflows/powershell.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ on:
1212

1313
permissions:
1414
contents: read
15-
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
1615

1716
jobs:
1817
build:
1918
name: PSScriptAnalyzer
2019
runs-on: ubuntu-latest
20+
permissions:
21+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
2122
steps:
2223
- name: Harden Runner
2324
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2

0 commit comments

Comments
 (0)