Skip to content

Commit 31c54b8

Browse files
committed
Keep the good
1 parent ac36f02 commit 31c54b8

File tree

6 files changed

+31
-0
lines changed

6 files changed

+31
-0
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on: # Build any PRs and main branch changes
2020
schedule:
2121
- cron: '0 0 1 * *' # Every month
2222

23+
permissions:
24+
contents: read
25+
2326
concurrency:
2427
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2528
cancel-in-progress: true

.github/workflows/auto-merge-dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ permissions:
88
jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
1114
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'yoanm/symfony-jsonrpc-http-server'
1215
steps:
1316
- name: Dependabot metadata

.github/workflows/coverage-upload.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
workflows: ["CI"]
55
types: [completed]
66

7+
permissions:
8+
contents: read
9+
checks: write # For the check run creation !
10+
711
jobs:
812
upload:
913
name: Upload

.github/workflows/pre-check-CI-updates.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
- '.github/workflows/reusable-coverage-upload-workflow.yml'
1919
- '.github/workflows/auto-merge-dependabot.yml'
2020

21+
permissions:
22+
contents: read
23+
checks: write # For the check run creation !
24+
2125
concurrency:
2226
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2327
cancel-in-progress: true

.github/workflows/reusable-CI-workflow.yml

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

6+
permissions:
7+
contents: read
8+
69
env:
710
COMPOSER_PREFER_STABLE: '1'
811
TEST_OUTPUT_STYLE: pretty
@@ -11,6 +14,8 @@ jobs:
1114
fetch-supported-versions:
1215
name: Fetch supported versions
1316
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
1419
outputs:
1520
php-min: ${{ steps.fetch-php-versions.outputs.min }}
1621
php-max: ${{ steps.fetch-php-versions.outputs.max }}
@@ -25,6 +30,7 @@ jobs:
2530
with:
2631
dependency: php
2732
path: .github/workflows/supported-versions.json
33+
2834
- name: Fetch Symfony supported versions
2935
id: fetch-symfony-versions
3036
uses: yoanm/gha-supported-versions-parser@feature/init
@@ -36,6 +42,8 @@ jobs:
3642
name: ${{ matrix.job-name }}
3743
needs: [fetch-supported-versions]
3844
runs-on: ubuntu-latest
45+
permissions:
46+
contents: read
3947
env:
4048
COVERAGE_TYPE: none
4149
COVERAGE_OUTPUT_STYLE: clover
@@ -157,6 +165,8 @@ jobs:
157165
name: Static analysis
158166
needs: [fetch-supported-versions]
159167
runs-on: ubuntu-latest
168+
permissions:
169+
contents: read
160170
env:
161171
PHP_VERSION: ${{ needs.fetch-supported-versions.outputs.php-max }}
162172
SYMFONY_VERSION: ${{ needs.fetch-supported-versions.outputs.symfony-max }}
@@ -209,6 +219,9 @@ jobs:
209219
needs: [ fetch-supported-versions, tests ]
210220
runs-on: ubuntu-latest
211221
continue-on-error: true
222+
permissions:
223+
contents: read
224+
checks: write # For the check run creation !
212225
env:
213226
COMPOSER_IGNORE_PLATFORM_REQ: 'php+'
214227
strategy:

.github/workflows/reusable-coverage-upload-workflow.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
CODECOV_TOKEN:
99
required: true
1010

11+
permissions:
12+
contents: read
13+
checks: write # For the check run creation !
14+
1115
jobs:
1216
fetch-info:
1317
name: Fetch triggering workflow metadata

0 commit comments

Comments
 (0)