From 32bed8166faa136d290cac5361eb47afdf3df0e0 Mon Sep 17 00:00:00 2001
From: Tillman Jex <tjex@tjex.net>
Date: Thu, 28 Nov 2024 18:44:18 +0100
Subject: [PATCH] fix unauthorized access in build binaries action (#473)

---
 .github/workflows/build-binaries.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml
index fd0ff1a7..d59c8f9a 100644
--- a/.github/workflows/build-binaries.yml
+++ b/.github/workflows/build-binaries.yml
@@ -5,6 +5,12 @@ on:
 env:
   CGO_ENABLED: 1
 jobs:
+  - name: Login to GitHub Container Registry
+    uses: docker/login-action@v3
+    with:
+      registry: ghcr.io
+      username: ${{ github.actor }}
+      password: ${{ secrets.GITHUB_TOKEN }}
   build-linux-intel:
     runs-on: ubuntu-latest
     strategy: