Skip to content

Commit b7f88af

Browse files
committed
CI: Hardening
1 parent 5f4ff7b commit b7f88af

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ on:
66
- main
77
pull_request:
88

9+
permissions: {}
10+
911
jobs:
1012
build:
1113
name: Build (${{ matrix.runner }})
1214
runs-on: ${{ matrix.runner }}
15+
16+
permissions:
17+
contents: read
18+
1319
strategy:
1420
matrix:
1521
runner:
@@ -18,10 +24,12 @@ jobs:
1824

1925
steps:
2026
- name: Checkout
21-
uses: actions/checkout@v4
27+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
28+
with:
29+
persist-credentials: false
2230

2331
- name: Set up JDK 11
24-
uses: actions/setup-java@v4
32+
uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0
2533
with:
2634
java-version: "11"
2735
distribution: temurin

0 commit comments

Comments
 (0)