From 9df5d7cdec437a21d4a3bd6cab370950ef75f8c9 Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Thu, 26 Sep 2024 15:39:23 +0200 Subject: [PATCH] Log into GitHub Container Registry for unit test Ref: https://github.com/shipwright-io/build/issues/1689 Log into GitHub Container Registry for unit test so that Trivy database download can be done in an authenticated context. Signed-off-by: Matthias Diester --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0ea88ecab..6828656d39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 + - name: Login to container registry + run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u ${{ github.repository_owner }} --password-stdin ghcr.io - name: Install Go uses: actions/setup-go@v5 with: