From 61d53f501b26146335e9577a6d4a37ae566dc14e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 13:43:40 +0000 Subject: [PATCH] Replace peter-evans/dockerhub-description with direct Docker Hub API call Agent-Logs-Url: https://github.com/Particular/ServicePulse/sessions/fb04487e-eb10-4b36-a338-45a8b04ca19c Co-authored-by: afprtclr <208591451+afprtclr@users.noreply.github.com> --- .github/workflows/push-container-images.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push-container-images.yml b/.github/workflows/push-container-images.yml index 8d6a3af93..4a0c3bdba 100644 --- a/.github/workflows/push-container-images.yml +++ b/.github/workflows/push-container-images.yml @@ -46,10 +46,11 @@ jobs: Invoke-Expression $cmd - name: Update Docker Hub Description if: ${{ steps.validate.outputs.latest == 'true' }} - uses: peter-evans/dockerhub-description@v5.0.0 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - repository: particular/servicepulse - readme-filepath: ./Container-README.md - short-description: Keep track of the health and performance of your system's endpoints. \ No newline at end of file + run: | + $loginPayload = @{ username = "${{ secrets.DOCKERHUB_USERNAME }}"; password = "${{ secrets.DOCKERHUB_TOKEN }}" } | ConvertTo-Json + $loginResponse = Invoke-RestMethod -Method Post -Uri "https://hub.docker.com/v2/users/login/" -ContentType "application/json" -Body $loginPayload -ErrorAction Stop + $token = $loginResponse.token + Write-Output "::add-mask::$token" + $readme = Get-Content -Path "./Container-README.md" -Raw + $updatePayload = @{ full_description = $readme; description = "Keep track of the health and performance of your system's endpoints." } | ConvertTo-Json + Invoke-RestMethod -Method Patch -Uri "https://hub.docker.com/v2/repositories/particular/servicepulse/" -Headers @{ Authorization = "JWT $token" } -ContentType "application/json" -Body $updatePayload -ErrorAction Stop \ No newline at end of file