Skip to content

Commit 406f4e0

Browse files
committed
add repo_token varaible in Lint OpenAPI doc action
Related to: aliencube#221
1 parent 75b9ccd commit 406f4e0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/azure-dev-build-only.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ on:
1313

1414
permissions:
1515
id-token: write
16-
contents: read
16+
contents: write
1717
issues: write
1818
pull-requests: write
19-
checks: write
19+
# checks: write
2020

2121
jobs:
2222
build-test:
@@ -70,6 +70,7 @@ jobs:
7070
uses: stoplightio/spectral-action@latest
7171
with:
7272
file_glob: './openapi.json'
73+
repo_token: ${{ secrets.GH_PAT_GRAINED }}
7374

7475
- name: Install playwright
7576
shell: pwsh

.github/workflows/azure-dev.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010

1111
permissions:
1212
id-token: write
13-
contents: read
14-
checks: write
13+
contents: write
14+
# checks: write
1515

1616
jobs:
1717
build-test-deploy:
@@ -84,6 +84,8 @@ jobs:
8484
uses: stoplightio/spectral-action@latest
8585
with:
8686
file_glob: './openapi.json'
87+
repo_token: ${{ secrets.GH_PAT_GRAINED }}
88+
8789

8890
- name: Test solution
8991

0 commit comments

Comments
 (0)