From 283457d92464c621d89a71fcffe2275e6ead0cc9 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 28 Feb 2024 12:40:04 +0000 Subject: [PATCH] refactor: Add concurrency group to automated code reviews Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/uQki1Qy59?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- .github/workflows/receive-pr.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/receive-pr.yml b/.github/workflows/receive-pr.yml index a93c527..f2751ff 100644 --- a/.github/workflows/receive-pr.yml +++ b/.github/workflows/receive-pr.yml @@ -1,11 +1,17 @@ name: receive-pr + on: pull_request: types: [opened, synchronize] branches: - main + +concurrency: + group: '${{ github.workflow }} @ ${{ github.ref }}' + cancel-in-progress: true + # https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ # Since this pull request receives untrusted code, we should **NOT** have any secrets in the environment. jobs: upload-patch: - uses: openrewrite/gh-automation/.github/workflows/receive-pr.yml@main + uses: openrewrite/gh-automation/.github/workflows/receive-pr.yml@main \ No newline at end of file