Skip to content

Commit

Permalink
Use a GitHub app to obtain an ephemeral token with permissions to pri…
Browse files Browse the repository at this point in the history
…vate repos, then use it to clone private submodules
  • Loading branch information
kj4ezj committed Jan 25, 2023
1 parent ce8ba6a commit 36b72ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ jobs:
runs-on: ubuntu-20.04

steps:
- name: Authenticate
id: auth
uses: AntelopeIO/github-app-token-action@v1
with:
app_id: ${{ secrets.TRUSTEVM_CI_APP_ID }}
private_key: ${{ secrets.TRUSTEVM_CI_APP_KEY }}

- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ steps.auth.outputs.token }}

- name: Download CDT
uses: AntelopeIO/asset-artifact-download-action@v2
Expand Down

0 comments on commit 36b72ae

Please sign in to comment.