Skip to content

Commit

Permalink
Log into GitHub Container Registry for unit test
Browse files Browse the repository at this point in the history
Ref: #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 <[email protected]>
  • Loading branch information
HeavyWombat committed Sep 26, 2024
1 parent 812b2ed commit 9df5d7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9df5d7c

Please sign in to comment.