File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - ' system/**'
1212 - ' .github/workflows/deploy-apidocs.yml'
1313
14+ permissions :
15+ contents : read
16+
1417jobs :
1518 build :
1619 name : Deploy to api
20+ permissions :
21+ contents : write
1722 if : github.repository == 'codeigniter4/CodeIgniter4'
1823 runs-on : ubuntu-22.04
1924
Original file line number Diff line number Diff line change 66 release :
77 types : [published]
88
9+ permissions :
10+ contents : read
11+
912jobs :
1013 check-version :
1114 name : Check for updated version
3134
3235 framework :
3336 name : Deploy to framework
37+ permissions :
38+ # Allow actions/github-script to create release
39+ contents : write
3440 if : github.repository == 'codeigniter4/CodeIgniter4'
3541 runs-on : ubuntu-22.04
3642 needs : check-version
7884
7985 appstarter :
8086 name : Deploy to appstarter
87+ permissions :
88+ # Allow actions/github-script to create release
89+ contents : write
8190 if : github.repository == 'codeigniter4/CodeIgniter4'
8291 runs-on : ubuntu-22.04
8392 needs : check-version
@@ -125,6 +134,9 @@ jobs:
125134
126135 userguide :
127136 name : Deploy to userguide
137+ permissions :
138+ # Allow actions/github-script to create release
139+ contents : write
128140 if : github.repository == 'codeigniter4/CodeIgniter4'
129141 runs-on : ubuntu-22.04
130142 needs : check-version
Original file line number Diff line number Diff line change 1212 paths :
1313 - ' user_guide_src/**'
1414
15+ permissions :
16+ contents : read
17+
1518jobs :
1619 build :
1720 name : Deploy to gh-pages
21+ permissions :
22+ # Allow ad-m/github-push-action to push commit to branch gh-pages
23+ contents : write
1824 if : (github.repository == 'codeigniter4/CodeIgniter4')
1925 runs-on : ubuntu-latest
2026 steps :
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ concurrency:
1818 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1919 cancel-in-progress : true
2020
21+ permissions :
22+ contents : read
23+
2124jobs :
2225 auto-review-tests :
2326 uses : ./.github/workflows/reusable-serviceless-phpunit-test.yml # @TODO Extract to codeigniter4/.github repo
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ concurrency:
1616 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1717 cancel-in-progress : true
1818
19+ permissions :
20+ contents : read
21+
1922jobs :
2023 lint :
2124 name : PHP ${{ matrix.php-version }} Lint with PHP CS Fixer
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ concurrency:
2828 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2929 cancel-in-progress : true
3030
31+ permissions :
32+ contents : read
33+
3134jobs :
3235 build :
3336 name : Architectural Inspection
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ concurrency:
2727 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2828 cancel-in-progress : true
2929
30+ permissions :
31+ contents : read
32+
3033jobs :
3134 build :
3235 name : Duplicate Code Detection
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ concurrency:
3131 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3232 cancel-in-progress : true
3333
34+ permissions :
35+ contents : read
36+
3437jobs :
3538 build :
3639 name : PHP ${{ matrix.php-versions }} Static Analysis
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ concurrency:
3131 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3232 cancel-in-progress : true
3333
34+ permissions :
35+ contents : read
36+
3437jobs :
3538 # Any environment variables set in an env context defined at the workflow level
3639 # in the caller workflow are not propagated to the called workflow.
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ concurrency:
3333 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3434 cancel-in-progress : true
3535
36+ permissions :
37+ contents : read
38+
3639jobs :
3740 build :
3841 name : PHP ${{ matrix.php-versions }} Analyze code (Rector) on ${{ matrix.paths }}
You can’t perform that action at this time.
0 commit comments