Skip to content

Commit 87ff3e6

Browse files
authored
feat(ci): DSPX-1716 Updating permission for bundled tests (#306)
The checks GitHub action requires some new permissions to report SDK results as a comment, adding those permisisons
1 parent 50b0302 commit 87ff3e6

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/checks.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ jobs:
114114
uses: opentdf/platform/test/start-up-with-containers@main
115115
with:
116116
platform-ref: main
117-
117+
118118
- name: Get grpcurl
119119
run: go install github.com/fullstorydev/grpcurl/cmd/[email protected]
120120
- name: Make sure that the platform is up
121121
run: |
122122
grpcurl -plaintext localhost:8080 list && \
123123
grpcurl -plaintext localhost:8080 kas.AccessService/PublicKey
124-
124+
125125
- name: Validate the SDK through the command line interface
126126
run: |
127127
printf 'here is some data to encrypt' > data
@@ -175,7 +175,7 @@ jobs:
175175
--platform-endpoint=http://localhost:8080 \
176176
-h\
177177
decryptnano -f nano.ntdf > decrypted
178-
178+
179179
if ! diff -q data decrypted; then
180180
printf 'decrypted data is incorrect [%s]' "$(< decrypted)"
181181
exit 1
@@ -199,7 +199,7 @@ jobs:
199199
--platform-endpoint=http://localhost:8080 \
200200
-h\
201201
decryptnano -f nanopt.ntdf > decrypted
202-
202+
203203
if ! diff -q data decrypted; then
204204
printf 'decrypted data is incorrect [%s]' "$(< decrypted)"
205205
exit 1
@@ -226,7 +226,7 @@ jobs:
226226
--platform-endpoint=http://localhost:8080 \
227227
-h\
228228
decrypt -f test.tdf > decrypted
229-
229+
230230
if ! diff -q data decrypted; then
231231
printf 'decrypted data is incorrect [%s]' "$(< decrypted)"
232232
exit 1
@@ -257,7 +257,7 @@ jobs:
257257
--platform-endpoint=http://localhost:8080 \
258258
-h\
259259
decrypt --with-assertion-verification-keys="$SIGNED_ASSERTION_VERIFICATON_HS256" -f test.tdf > decrypted
260-
260+
261261
if ! diff -q data decrypted; then
262262
printf 'decrypted data is incorrect [%s]' "$(< decrypted)"
263263
exit 1
@@ -278,7 +278,7 @@ jobs:
278278
--platform-endpoint=http://localhost:8080 \
279279
-h\
280280
decrypt --with-assertion-verification-keys "$SIGNED_ASSERTION_VERIFICATON_RS256" -f test.tdf > decrypted
281-
281+
282282
if ! diff -q data decrypted; then
283283
printf 'decrypted data is incorrect [%s]' "$(< decrypted)"
284284
exit 1
@@ -334,13 +334,15 @@ jobs:
334334
permissions:
335335
contents: read
336336
packages: read
337+
checks: write
338+
pull-requests: write
337339
needs: platform-integration
338340
uses: opentdf/tests/.github/workflows/xtest.yml@main
339341
with:
340342
focus-sdk: java
341343
java-ref: ${{ github.ref }} latest
342344
platform-ref: main lts
343-
345+
344346
ci:
345347
needs:
346348
- platform-integration

0 commit comments

Comments
 (0)