@@ -14,6 +14,8 @@ concurrency:
1414 group : ${{ github.workflow }}-${{ github.ref }}
1515 cancel-in-progress : true
1616
17+ permissions : read-all
18+
1719jobs :
1820 # get matrix for ci-jobs
1921 get_matrix :
@@ -128,6 +130,8 @@ jobs:
128130 if : ${{ github.event_name == 'pull_request' && !startsWith(github.event.pull_request.base.ref, 'release/') }}
129131 name : ' Jest Test Coverage (${{ matrix.flavor }})'
130132 runs-on : ubuntu-latest
133+ permissions :
134+ pull-requests : write
131135 strategy :
132136 matrix : ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
133137 steps :
@@ -261,6 +265,8 @@ jobs:
261265 needs : get_matrix
262266 name : ' Call Composite automation test (${{ matrix.flavor }})'
263267 runs-on : ubuntu-latest
268+ permissions :
269+ pull-requests : write
264270 strategy :
265271 matrix : ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
266272 steps :
@@ -339,6 +345,8 @@ jobs:
339345 needs : get_matrix
340346 name : ' Chat Composite automation test (${{ matrix.flavor }})'
341347 runs-on : ubuntu-latest
348+ permissions :
349+ pull-requests : write
342350 strategy :
343351 matrix : ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
344352 steps :
@@ -417,6 +425,8 @@ jobs:
417425 needs : get_matrix
418426 name : ' Call With Chat Composite automation test (${{ matrix.flavor }})'
419427 runs-on : ubuntu-latest
428+ permissions :
429+ pull-requests : write
420430 strategy :
421431 matrix : ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
422432 steps :
@@ -659,6 +669,8 @@ jobs:
659669 needs : get_matrix
660670 name : ' Build And Test Static HTML Composites Sample (${{ matrix.flavor }})'
661671 runs-on : ubuntu-latest
672+ permissions :
673+ pull-requests : write
662674 strategy :
663675 matrix : ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
664676 steps :
@@ -721,6 +733,8 @@ jobs:
721733 needs : get_matrix
722734 name : ' Build And Test Component+Binding Examples (${{ matrix.flavor }})'
723735 runs-on : ubuntu-latest
736+ permissions :
737+ pull-requests : write
724738 strategy :
725739 matrix : ${{ fromJSON(needs.get_matrix.outputs.matrix) }}
726740 steps :
@@ -781,6 +795,8 @@ jobs:
781795
782796 compare_base_bundle_stats :
783797 runs-on : ubuntu-latest
798+ permissions :
799+ pull-requests : write
784800 if : ${{ github.event_name == 'pull_request' && !startsWith(github.event.pull_request.base.ref, 'release/') }}
785801 name : Compare bundle size from pr head ref to base ref - ${{ matrix.app }}
786802 needs : [build_calling_sample, build_chat_sample, build_call_with_chat_sample]
@@ -861,6 +877,8 @@ jobs:
861877
862878 check_failure :
863879 runs-on : ubuntu-latest
880+ permissions :
881+ issues : write
864882 needs :
865883 [build_packages, build_calling_sample, build_chat_sample, build_static_html_composites_sample, build_storybook]
866884 if : failure() && github.ref == 'refs/heads/main'
0 commit comments