From 67672586bcc1d40b08ae65ba77a733a423be2742 Mon Sep 17 00:00:00 2001 From: Matty Jorgensen Date: Wed, 9 Aug 2023 20:52:12 -0500 Subject: [PATCH 1/2] Add required permissions --- .github/workflows/dotnet.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e1c1609..693b47e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -6,6 +6,11 @@ on: pull_request: branches: [ master ] +permissions: + contents: read + checks: write + packages: write + jobs: build: runs-on: ubuntu-latest From 273d567fdcdcd00e42649d2d8f72237d50e77bb0 Mon Sep 17 00:00:00 2001 From: Matty Jorgensen Date: Wed, 9 Aug 2023 20:52:18 -0500 Subject: [PATCH 2/2] Add concurrency rule --- .github/workflows/dotnet.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 693b47e..6deb2d9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -11,6 +11,10 @@ permissions: checks: write packages: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest