From 9018cd9b7d79e8cff77d017b61c898949c23dc80 Mon Sep 17 00:00:00 2001 From: Scotte Zinn Date: Fri, 3 May 2024 13:09:21 -0400 Subject: [PATCH] fix(schema): git isn't in worker --- .github/workflows/schemas.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/schemas.yaml b/.github/workflows/schemas.yaml index c9a22069b7..6becf44e02 100644 --- a/.github/workflows/schemas.yaml +++ b/.github/workflows/schemas.yaml @@ -29,7 +29,7 @@ jobs: shell: bash run: | sudo apt-get -qq update && \ - sudo apt-get -qq install --no-install-recommends -y curl unzip + sudo apt-get -qq install --no-install-recommends -y curl unzip git - name: Setup Flux CLI uses: fluxcd/flux2/action@main @@ -53,6 +53,18 @@ jobs: encodedString: ${{ secrets.KUBECONFIG }} fileName: kubeconfig + - name: Generate Token + uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: "${{ secrets.BOT_APP_ID }}" + private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" + + - name: Checkout + uses: actions/checkout@v4 + with: + token: "${{ steps.app-token.outputs.token }}" + - name: Download and run crd-extractor env: KUBECONFIG: "${{ steps.kubeconfig.outputs.filePath }}"