From 1d9a03a2f7ceea4c7725aa6609dbfb16e01bf5f2 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Wed, 1 Nov 2023 10:26:24 -0500 Subject: [PATCH] Update glue to use JWT auth --- .github/workflows/build.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 27fb1f9..7540bf8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,6 +8,10 @@ on: - '**' pull_request: +permissions: + id-token: write + contents: write + jobs: build: runs-on: ubuntu-latest @@ -114,7 +118,9 @@ jobs: $TAG_NAME \ artifacts/installer-chia-healthcheck*/*.deb + - uses: Chia-Network/actions/github/jwt@main + - name: Trigger apt repo update run: | - curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/start - curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/success/deploy + curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/start + curl -s -XPOST -H "Authorization: Bearer ${{ env.JWT_TOKEN }}" --data '{"release_version":"${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-healthcheck/${{ github.sha }}/success/deploy