[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:
parent
9308329e89
commit
7d3be80a44
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue