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 }}"