From 09bf5fb86b67b07ba9f53949bc6b72db44d54be8 Mon Sep 17 00:00:00 2001 From: James Hughes Date: Mon, 6 May 2024 23:38:03 +0100 Subject: [PATCH] Added permission for github release and restricted tagger perms --- .github/workflows/dotnet-cd.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-cd.yml b/.github/workflows/dotnet-cd.yml index 0957f86..e03172e 100644 --- a/.github/workflows/dotnet-cd.yml +++ b/.github/workflows/dotnet-cd.yml @@ -24,7 +24,8 @@ jobs: needs: test name: Create a Package Release runs-on: ubuntu-latest - permissions: write-all + permissions: + contents: write steps: - uses: actions/checkout@v4 # Need the full commit history for conventional commit - name: Setup .NET @@ -52,6 +53,8 @@ jobs: github-publish: + permissions: + packages: write needs: semantic-release name: Publish to Github runs-on: ubuntu-latest