File tree Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Expand file tree Collapse file tree 6 files changed +31
-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
20
20
schedule :
21
21
- cron : ' 0 0 1 * *' # Every month
22
22
23
+ permissions :
24
+ contents : read
25
+
23
26
concurrency :
24
27
group : " ${{ github.workflow }}-${{ github.head_ref || github.ref }}"
25
28
cancel-in-progress : true
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ permissions:
8
8
jobs :
9
9
dependabot :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
13
+ pull-requests : write
11
14
if : github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'yoanm/symfony-jsonrpc-http-server'
12
15
steps :
13
16
- name : Dependabot metadata
Original file line number Diff line number Diff line change 4
4
workflows : ["CI"]
5
5
types : [completed]
6
6
7
+ permissions :
8
+ contents : read
9
+ checks : write # For the check run creation !
10
+
7
11
jobs :
8
12
upload :
9
13
name : Upload
Original file line number Diff line number Diff line change 18
18
- ' .github/workflows/reusable-coverage-upload-workflow.yml'
19
19
- ' .github/workflows/auto-merge-dependabot.yml'
20
20
21
+ permissions :
22
+ contents : read
23
+ checks : write # For the check run creation !
24
+
21
25
concurrency :
22
26
group : " ${{ github.workflow }}-${{ github.head_ref || github.ref }}"
23
27
cancel-in-progress : true
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: 'CI reusable workflow'
3
3
on :
4
4
workflow_call :
5
5
6
+ permissions :
7
+ contents : read
8
+
6
9
env :
7
10
COMPOSER_PREFER_STABLE : ' 1'
8
11
TEST_OUTPUT_STYLE : pretty
11
14
fetch-supported-versions :
12
15
name : Fetch supported versions
13
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : read
14
19
outputs :
15
20
php-min : ${{ steps.fetch-php-versions.outputs.min }}
16
21
php-max : ${{ steps.fetch-php-versions.outputs.max }}
25
30
with :
26
31
dependency : php
27
32
path : .github/workflows/supported-versions.json
33
+
28
34
- name : Fetch Symfony supported versions
29
35
id : fetch-symfony-versions
30
36
uses : yoanm/gha-supported-versions-parser@feature/init
36
42
name : ${{ matrix.job-name }}
37
43
needs : [fetch-supported-versions]
38
44
runs-on : ubuntu-latest
45
+ permissions :
46
+ contents : read
39
47
env :
40
48
COVERAGE_TYPE : none
41
49
COVERAGE_OUTPUT_STYLE : clover
@@ -157,6 +165,8 @@ jobs:
157
165
name : Static analysis
158
166
needs : [fetch-supported-versions]
159
167
runs-on : ubuntu-latest
168
+ permissions :
169
+ contents : read
160
170
env :
161
171
PHP_VERSION : ${{ needs.fetch-supported-versions.outputs.php-max }}
162
172
SYMFONY_VERSION : ${{ needs.fetch-supported-versions.outputs.symfony-max }}
@@ -209,6 +219,9 @@ jobs:
209
219
needs : [ fetch-supported-versions, tests ]
210
220
runs-on : ubuntu-latest
211
221
continue-on-error : true
222
+ permissions :
223
+ contents : read
224
+ checks : write # For the check run creation !
212
225
env :
213
226
COMPOSER_IGNORE_PLATFORM_REQ : ' php+'
214
227
strategy :
Original file line number Diff line number Diff line change 8
8
CODECOV_TOKEN :
9
9
required : true
10
10
11
+ permissions :
12
+ contents : read
13
+ checks : write # For the check run creation !
14
+
11
15
jobs :
12
16
fetch-info :
13
17
name : Fetch triggering workflow metadata
You can’t perform that action at this time.
0 commit comments