From b602d4207328fd4bec9ead12e9bf502536b388b1 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 20 Sep 2022 14:21:14 +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 228536aca..8a012f927 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,9 @@ defaults: # to improve debugging some of the longer scripts. shell: /bin/bash -o errexit -o pipefail -o xtrace {0} +permissions: + contents: read # to fetch code (actions/checkout) + jobs: main: # The type of runner that the job will run on