Skip to content

Commit

Permalink
Merge pull request MapServer#7001 from rouault/ci_concurrency_permiss…
Browse files Browse the repository at this point in the history
…ions

CI .yml files: add 'concurrency' and 'permissions' group
  • Loading branch information
rouault authored Jan 10, 2024
2 parents dcdd10e + 0713558 commit 071e1a3
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/build-mapscript-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
except:
- /^(cherry-pick-)?backport-\d+-to-/

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-20.04
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-mapscript-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
except:
- /^(cherry-pick-)?backport-\d+-to-/

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-20.04
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Build

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-20.04
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/check-crlf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ name: Check CRLF

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
Check-CRLF:
name: verify that only LF linefeeds are used
Expand All @@ -17,4 +24,4 @@ jobs:
- name: Use action to check for CRLF endings
uses: erclu/[email protected]
with: # ignore directories containing *.pdf and *.tab
exclude: msautotest/misc/data/ /msautotest/renderers/expected/
exclude: msautotest/misc/data/ /msautotest/renderers/expected/
8 changes: 8 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: CIFuzz
on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
Fuzzing:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: cppcheck

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:

cppcheck_2004:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/irc_notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
irc_notify:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 071e1a3

Please sign in to comment.