build: harden build.yml permissions (#2274)
Signed-off-by: Alex <aleksandrosansan@gmail.com> Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
66d934ba44
commit
c33e03b133
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -2,6 +2,9 @@ name: Build
|
|||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: "Build on JDK ${{ matrix.java }}"
|
name: "Build on JDK ${{ matrix.java }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user