Skip to content

Commit 904922b

Browse files
committed
Permissions and concurrency
1 parent 0792d68 commit 904922b

14 files changed

+41
-33
lines changed

.github/workflows/jobs/build.yml renamed to .github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Build
33
on:
44
workflow_call:
55

6-
permissions:
7-
contents: read
8-
96
jobs:
107
build:
118
runs-on: ubuntu-latest

.github/workflows/code-quality.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: Code Quality
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
613
jobs:
714
trufflehog:
815
uses: ./.github/workflows/jobs/truffle-hog.yml

.github/workflows/coding-standards.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: Coding Standards
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
613
jobs:
714
stylelint:
815
uses: ./.github/workflows/jobs/stylelint.yml

.github/workflows/jobs/deploy.yml renamed to .github/workflows/deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010
required: true
1111
type: string
1212

13-
permissions:
14-
contents: read
15-
1613
jobs:
1714
deploy:
1815
runs-on: ubuntu-latest

.github/workflows/develop.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches:
66
- develop
77

8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
815
jobs:
916
lint:
1017
uses: ./.github/workflows/coding-standards.yml
@@ -14,11 +21,11 @@ jobs:
1421
needs: lint
1522

1623
build:
17-
uses: ./.github/workflows/jobs/build.yml
24+
uses: ./.github/workflows/build.yml
1825
needs: test
1926

2027
deploy:
21-
uses: ./.github/workflows/jobs/deploy.yml
28+
uses: ./.github/workflows/deploy.yml
2229
needs: build
2330
with:
2431
name: develop

.github/workflows/jobs/eslint.yml renamed to .github/workflows/eslint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: JavaScript Coding Standards
33
on:
44
workflow_call:
55

6-
permissions:
7-
contents: read
8-
96
jobs:
107
eslint:
118
runs-on: ubuntu-latest

.github/workflows/jobs/jest.yml renamed to .github/workflows/jest.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: JavaScript Unit Tests
33
on:
44
workflow_call:
55

6-
permissions:
7-
contents: read
8-
96
jobs:
107
jest:
118
runs-on: ubuntu-latest

.github/workflows/jobs/phpcs.yml renamed to .github/workflows/phpcs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: PHP Coding Standards
33
on:
44
workflow_call:
55

6-
permissions:
7-
contents: read
8-
96
jobs:
107
phpcs:
118
runs-on: ubuntu-latest

.github/workflows/jobs/phpstan.yml renamed to .github/workflows/phpstan.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: PHP Static Analysis
33
on:
44
workflow_call:
55

6-
permissions:
7-
contents: read
8-
96
jobs:
107
phpstan:
118
runs-on: ubuntu-latest

.github/workflows/production.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches:
66
- trunk
77

8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
815
jobs:
916
lint:
1017
uses: ./.github/workflows/coding-standards.yml
@@ -14,11 +21,11 @@ jobs:
1421
needs: lint
1522

1623
build:
17-
uses: ./.github/workflows/jobs/build.yml
24+
uses: ./.github/workflows/build.yml
1825
needs: test
1926

2027
deploy:
21-
uses: ./.github/workflows/jobs/deploy.yml
28+
uses: ./.github/workflows/deploy.yml
2229
needs: build
2330
with:
2431
name: production

0 commit comments

Comments
 (0)