Skip to content

Commit 5ed9b52

Browse files
ci: use GitHub App for lock authentication
Replace CI_LOCK_TOKEN with GitHub App credentials (ONFIDO_CI_LOCK_APP_ID, ONFIDO_CI_LOCK_PRIVATE_KEY, ONFIDO_CI_LOCK_INSTALLATION_ID) for the distributed lock mechanism. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6ee259d commit 5ed9b52

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/python.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
if: steps.should-run-integration-tests.outputs.result == 'true'
6464
uses: onfido/onfido-actions/lock/acquire@add-lock-action
6565
with:
66-
github-token: ${{ secrets.CI_LOCK_TOKEN }}
66+
app-id: ${{ secrets.ONFIDO_CI_LOCK_APP_ID }}
67+
app-private-key: ${{ secrets.ONFIDO_CI_LOCK_PRIVATE_KEY }}
6768
- name: Test with API token auth
6869
if: steps.should-run-integration-tests.outputs.result == 'true'
6970
run: |
@@ -91,7 +92,8 @@ jobs:
9192
if: always() && steps.should-run-integration-tests.outputs.result == 'true'
9293
uses: onfido/onfido-actions/lock/release@add-lock-action
9394
with:
94-
github-token: ${{ secrets.CI_LOCK_TOKEN }}
95+
app-id: ${{ secrets.ONFIDO_CI_LOCK_APP_ID }}
96+
app-private-key: ${{ secrets.ONFIDO_CI_LOCK_PRIVATE_KEY }}
9597

9698
publish:
9799
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)