From d56ea86146c4e1ec56fd5d2801becd503ee2fa4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Fri, 6 Jan 2023 16:24:55 +0100 Subject: [PATCH] chore: add missing gh workflow concurrency statements (#5914) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Signed-off-by: Charles-Edouard Brétéché --- .github/workflows/cli.yaml | 4 ++++ .github/workflows/codecov.yaml | 4 ++++ .github/workflows/fossa.yml | 4 ++++ .github/workflows/helm-release.yaml | 1 + .github/workflows/helm-test.yaml | 4 ++++ .github/workflows/image-build.yaml | 8 ++++---- .github/workflows/image.yaml | 8 ++++---- .github/workflows/nancy.yaml | 4 ++++ .github/workflows/release.yaml | 1 + .github/workflows/scorecard.yaml | 4 ++++ .github/workflows/sonarcloud.yaml | 4 ++++ 11 files changed, 38 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cli.yaml b/.github/workflows/cli.yaml index be0b9b416a..837fd24307 100644 --- a/.github/workflows/cli.yaml +++ b/.github/workflows/cli.yaml @@ -17,6 +17,10 @@ on: - 'README.md' - '.github/config.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 2b789189ee..d6fef10f26 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -10,6 +10,10 @@ on: - 'main' - 'release*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml index 7018c9f6aa..1ed71fe67f 100644 --- a/.github/workflows/fossa.yml +++ b/.github/workflows/fossa.yml @@ -8,6 +8,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml index c751a6434d..e19636c506 100644 --- a/.github/workflows/helm-release.yaml +++ b/.github/workflows/helm-release.yaml @@ -1,4 +1,5 @@ name: helm-release + on: push: tags: diff --git a/.github/workflows/helm-test.yaml b/.github/workflows/helm-test.yaml index 17c7894bc6..3be82e6fb4 100644 --- a/.github/workflows/helm-test.yaml +++ b/.github/workflows/helm-test.yaml @@ -9,6 +9,10 @@ on: - charts/** - .github/workflows/helm-test.yaml +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: helm-tests: runs-on: ubuntu-latest diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml index a34d256a7d..63158b25da 100644 --- a/.github/workflows/image-build.yaml +++ b/.github/workflows/image-build.yaml @@ -5,15 +5,15 @@ on: - 'main' - 'release*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read packages: write id-token: write -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: pre-checks: runs-on: ubuntu-latest diff --git a/.github/workflows/image.yaml b/.github/workflows/image.yaml index 53311e1f17..6e64201e3d 100644 --- a/.github/workflows/image.yaml +++ b/.github/workflows/image.yaml @@ -5,15 +5,15 @@ on: - 'main' - 'release*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read packages: write id-token: write -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: push-init-kyverno: uses: ./.github/workflows/reuse.yaml diff --git a/.github/workflows/nancy.yaml b/.github/workflows/nancy.yaml index 48b138968b..5e009cfac3 100644 --- a/.github/workflows/nancy.yaml +++ b/.github/workflows/nancy.yaml @@ -6,6 +6,10 @@ on: - 'main' - 'release*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 471dfb09f7..995dc2e913 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,5 @@ name: releaser + on: push: tags: diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml index 03d53e16ce..7a27f86467 100644 --- a/.github/workflows/scorecard.yaml +++ b/.github/workflows/scorecard.yaml @@ -7,6 +7,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analysis: runs-on: ubuntu-latest diff --git a/.github/workflows/sonarcloud.yaml b/.github/workflows/sonarcloud.yaml index 7d16661ff9..1e43046939 100644 --- a/.github/workflows/sonarcloud.yaml +++ b/.github/workflows/sonarcloud.yaml @@ -6,6 +6,10 @@ on: - 'main' - 'release*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read