build: harden main.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
Alex 2022-09-20 14:21:14 +02:00
parent bde785ee64
commit b602d42073
1 changed files with 3 additions and 0 deletions

View File

@ -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