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:
Alex 2022-12-08 21:29:50 +02:00 committed by GitHub
parent 66d934ba44
commit c33e03b133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}"