File tree Expand file tree Collapse file tree 5 files changed +27
-0
lines changed Expand file tree Collapse file tree 5 files changed +27
-0
lines changed Original file line number Diff line number Diff 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+
2326concurrency :
2427 group : " ${{ github.workflow }}-${{ github.head_ref || github.ref }}"
2528 cancel-in-progress : true
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ permissions:
88jobs :
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
Original file line number Diff line number Diff line change 44 workflows : ["CI"]
55 types : [completed]
66
7+ permissions :
8+ contents : read
9+ checks : write # For the check run creation !
10+
711jobs :
812 upload :
913 name : Upload
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: 'CI reusable workflow'
33on :
44 workflow_call :
55
6+ permissions :
7+ contents : read
8+
69env :
710 COMPOSER_PREFER_STABLE : ' 1'
811 TEST_OUTPUT_STYLE : pretty
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 }}
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
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 :
Original file line number Diff line number Diff line change 88 CODECOV_TOKEN :
99 required : true
1010
11+ permissions :
12+ contents : read
13+ checks : write # For the check run creation !
14+
1115jobs :
1216 fetch-info :
1317 name : Fetch triggering workflow metadata
You can’t perform that action at this time.
0 commit comments