build: harden main-ci.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
Alex 2022-09-20 12:05:20 +02:00
parent 61ecb42db9
commit 9402f8c104

View File

@ -11,6 +11,9 @@ on:
schedule: schedule:
- cron: '0 0 * * 0' - cron: '0 0 * * 0'
permissions:
contents: read # to fetch code (actions/checkout)
jobs: jobs:
build-php: build-php:
# Don't trigger on schedule event when in a fork # Don't trigger on schedule event when in a fork