From 77c98c917efd6ba97e571cd3dfc146344bd9e371 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Wed, 1 Mar 2023 09:54:36 +0100 Subject: [PATCH] #733: Stricter permissions --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc1038ce..be42988c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: CI on: [ push, pull_request ] +permissions: read-all + jobs: test: name: Test OpenJDK ${{ matrix.java }} on ${{ matrix.os }} @@ -11,6 +13,8 @@ jobs: os: [ ubuntu-latest, windows-latest, macos-latest ] java: [ 8, 11, 17, 18 ] runs-on: ${{ matrix.os }} + permissions: + checks: write steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 @@ -31,6 +35,8 @@ jobs: test_oracle: name: Test Oracle JDK 8 with KCMS=${{ matrix.kcms }} runs-on: ubuntu-latest + permissions: + checks: write strategy: matrix: kcms: [ true, false ]