From: Tim Düsterhus Date: Wed, 2 Aug 2023 15:01:55 +0000 (+0200) Subject: Add `permissions` to GitHub Action Workflows X-Git-Tag: 6.0.0_Beta_1~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=106ad3a9dfe246c4c499e3eb164064b6d484653d;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Add `permissions` to GitHub Action Workflows --- diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index a63c5ab..7e79479 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -6,6 +6,9 @@ on: - master pull_request: +permissions: + contents: read + jobs: php: name: PHP diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 9913c08..a6f69dd 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -10,6 +10,9 @@ on: - master pull_request: +permissions: + contents: read + jobs: syntax: name: "Check Syntax (${{ matrix.php }})" diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0facc2b..6d94faf 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,6 +10,10 @@ on: - ready_for_review - review_requested +permissions: + contents: read + pull-requests: read + jobs: commit_message: name: Check Commit Message