[CI]: Add Concurrency Grouping to GitHub Workflows (#1444)

* Update automerge-dependabot.yml

Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com>

* Update codeql-analysis.yml

Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com>

* Update go.yml

Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com>

* Update golangci-lint.yml

Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com>

---------

Signed-off-by: Ishani Goyal <111218213+Ishani217@users.noreply.github.com>
This commit is contained in:
Ishani Goyal 2024-05-09 17:22:37 +05:30 committed by GitHub
parent 9308329e89
commit 7d3be80a44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,10 @@
name: Dependabot auto-merge name: Dependabot auto-merge
on: pull_request on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write

View File

@ -20,6 +20,10 @@ on:
schedule: schedule:
- cron: '31 21 * * 6' - cron: '31 21 * * 6'
concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
# Minimal permissions to be inherited by any job that don't declare it's own permissions # Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions: permissions:
contents: read contents: read

View File

@ -7,6 +7,10 @@ on:
- main - main
- "release-*" - "release-*"
concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
# Minimal permissions to be inherited by any job that don't declare it's own permissions # Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions: permissions:
contents: read contents: read

View File

@ -12,6 +12,10 @@ on:
- ".golangci.yml" - ".golangci.yml"
pull_request: pull_request:
concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
permissions: # added using https://github.com/step-security/secure-repo permissions: # added using https://github.com/step-security/secure-repo
contents: read contents: read