Skip to content

Commit 1fbfcdf

Browse files
authored
ci: Update app permissions for version tests
Signed-off-by: Eric Deandrea <[email protected]>
1 parent 5d59572 commit 1fbfcdf

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/version-tests.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,21 @@ jobs:
6464
runs-on: ubuntu-latest
6565
if: github.repository == 'docling-project/docling-java'
6666
steps:
67+
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
68+
id: app-token
69+
with:
70+
app-id: ${{ vars.DOCLING_JAVA_CI_APP_ID }}
71+
private-key: ${{ secrets.DOCLING_JAVA_CI_PRIVATE_KEY }}
72+
permission-actions: read
73+
permission-contents: write
74+
permission-issues: write
75+
permission-pull-requests: write
76+
6777
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6878
with:
79+
token: ${{ steps.app-token.outputs.token }}
6980
fetch-depth: 0
81+
persist-credentials: false
7082

7183
- name: Reclaim disk space
7284
working-directory: .github/scripts
@@ -105,12 +117,6 @@ jobs:
105117
- name: Build version tester
106118
run: ./gradlew --no-daemon -Pjava.version=${{ env.JAVA_VERSION }} :docling-version-tests:build
107119

108-
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
109-
id: app-token
110-
with:
111-
app-id: ${{ vars.DOCLING_JAVA_CI_APP_ID }}
112-
private-key: ${{ secrets.DOCLING_JAVA_CI_PRIVATE_KEY }}
113-
114120
- name: Run version tester
115121
working-directory: docling-testing/docling-version-tests
116122
env:

0 commit comments

Comments
 (0)