Skip to content

Commit dd0a1c5

Browse files
[StepSecurity] ci: Harden GitHub Actions
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 2f09527 commit dd0a1c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/main-ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest
1215
steps:
16+
- name: Harden Runner
17+
uses: step-security/harden-runner@v2
18+
with:
19+
egress-policy: audit
20+
1321
- uses: actions/checkout@v4
1422
- name: Set up JDK 17
1523
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)