From aff9d5957cc23a74415087fd3458d32f70222310 Mon Sep 17 00:00:00 2001 From: maxkahan Date: Mon, 21 Aug 2023 17:25:48 +0100 Subject: [PATCH] adding specific permissions to github actions --- .github/workflows/build.yml | 14 ++++++++++++++ .github/workflows/mutation-test.yml | 13 +++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3bfea3a0..19237e55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,19 @@ name: Build on: [push] + +permissions: + actions: write + checks: write + contents: read + deployments: read + issues: write + discussions: write + packages: read + pages: write + pull-requests: write + security-events: write + statuses: write + jobs: test: name: Test diff --git a/.github/workflows/mutation-test.yml b/.github/workflows/mutation-test.yml index af0f3bc7..478cf5b4 100644 --- a/.github/workflows/mutation-test.yml +++ b/.github/workflows/mutation-test.yml @@ -1,6 +1,19 @@ name: Mutation Test on: workflow_dispatch +permissions: + actions: write + checks: write + contents: read + deployments: read + issues: write + discussions: write + packages: read + pages: write + pull-requests: write + security-events: write + statuses: write + jobs: mutation: name: run mutation test