aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <aleksandrosansan@gmail.com>2022-12-08 21:29:50 +0200
committerGitHub <noreply@github.com>2022-12-08 11:29:50 -0800
commitc33e03b133722e84d25c4f80244d74f7fe3f66cb (patch)
tree3d4d61430a8bc8aeab545ae97b0c884e5525e2a9
parent66d934ba4478035c5abf6b559066ec4a60d82325 (diff)
downloadgson-c33e03b133722e84d25c4f80244d74f7fe3f66cb.tar.gz
build: harden build.yml permissions (#2274)
Signed-off-by: Alex <aleksandrosansan@gmail.com> Signed-off-by: Alex <aleksandrosansan@gmail.com>
-rw-r--r--.github/workflows/build.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ef1b23d0..93cde7b5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,6 +2,9 @@ name: Build
on: [push, pull_request]
+permissions:
+ contents: read # to fetch code (actions/checkout)
+
jobs:
build:
name: "Build on JDK ${{ matrix.java }}"