Skip to content

Commit 2dd68f5

Browse files
committed
Test out permissions
1 parent acf0da8 commit 2dd68f5

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,12 @@ jobs:
143143
name: Web UI workflow
144144
needs: get-vars
145145
permissions:
146-
contents: read
147146
id-token: write # is required by nested component-check
147+
# Required to checkout the code
148+
contents: write
149+
checks: write
150+
# Required to put a comment into the pull-request
151+
pull-requests: write
148152
secrets:
149153
AWS_ROLE: ${{ secrets.AWS_ROLE }}
150154
AWS_REGION: ${{ secrets.AWS_REGION }}

.github/workflows/web-ui.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ jobs:
9595
strategy:
9696
fail-fast: false
9797
matrix:
98-
shard: [1, 2, 3, 4, 5]
99-
shardTotal: [5]
98+
shard: [1]
99+
shardTotal: [1]
100100
steps:
101101
- name: Checkout code
102102
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
@@ -128,6 +128,12 @@ jobs:
128128

129129
report-unit-coverage:
130130
runs-on: ubuntu-latest
131+
permissions:
132+
# Required to checkout the code
133+
contents: write
134+
checks: write
135+
# Required to put a comment into the pull-request
136+
pull-requests: write
131137
needs:
132138
- unit-tests
133139
steps:
@@ -146,6 +152,7 @@ jobs:
146152
- name: Publish test results
147153
uses: ArtiomTr/jest-coverage-report-action@262a7bb0b20c4d1d6b6b026af0f008f78da72788 # v2.3.1
148154
with:
155+
github-token: ${{ secrets.GITHUB_TOKEN }}
149156
base-coverage-file: coverage-merged.json
150157
coverage-file: coverage-merged.json
151158

0 commit comments

Comments
 (0)