From 4dacd997a589a9ed67a5d74ed580056ad0341775 Mon Sep 17 00:00:00 2001 From: Alex <93376818+sashashura@users.noreply.github.com> Date: Thu, 1 Sep 2022 22:36:51 +0200 Subject: [PATCH] GitHub Workflows security hardening (#26640) Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com> Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com> --- .github/workflows/trustedPR.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/trustedPR.yml b/.github/workflows/trustedPR.yml index c2d8604935..ce17ba9d78 100644 --- a/.github/workflows/trustedPR.yml +++ b/.github/workflows/trustedPR.yml @@ -8,8 +8,13 @@ on: types: - completed +permissions: + contents: read + jobs: comment: + permissions: + pull-requests: write runs-on: ubuntu-latest if: > ${{ github.event.workflow_run.event == 'pull_request' &&