From e073fea819b271da2677e83ba00dc4ec81764027 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 4 Nov 2021 11:39:05 +0200 Subject: [PATCH] github: explicitly set workflow permissions * current workflow only needs to read git content * if the workflow in the future does need write access, it's good to see permissions explicitly changing For context: "pull_request" runs never have write access anyway, so this significantly changes only the "push" runs that happen when branches are merged to develop. Signed-off-by: Jussi Kukkonen --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4367a04b9..7950ce85bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: pull_request: workflow_dispatch: +permissions: + contents: read + jobs: tests: name: Tests