From 9a70ca914b296db3ab89b6d4a7898fb6b9316ccc Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 8 Dec 2022 20:14:17 +0200 Subject: [PATCH] build: harden main.yml permissions Signed-off-by: Alex --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a10ea527..91870393 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ master ] +permissions: + contents: read # to fetch code (actions/checkout) + jobs: test: name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}