From f24e879a69035b317e0369e89859500379a364e6 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 5 Aug 2022 15:44:58 -0500 Subject: [PATCH] Add concurrency and permissions to workflow --- .github/workflows/check-formatting.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml index 63ba8fa..0d9c6c9 100644 --- a/.github/workflows/check-formatting.yml +++ b/.github/workflows/check-formatting.yml @@ -6,6 +6,14 @@ on: - main pull_request: +permissions: + contents: read + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest