Skip to content

Commit fb08cbf

Browse files
Add GitHub Container Registry login step
1 parent 1a84201 commit fb08cbf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,13 @@ jobs:
268268
needs: build-and-push
269269
if: github.event_name == 'push'
270270
steps:
271+
- name: Log in to GitHub Container Registry
272+
uses: docker/login-action@v3
273+
with:
274+
registry: ghcr.io
275+
username: ${{ github.actor }}
276+
password: ${{ secrets.GITHUB_TOKEN }}
277+
271278
- name: Scan backend image (Trivy)
272279
uses: aquasecurity/trivy-action@master
273280
with:

0 commit comments

Comments
 (0)