Use GITHUB_TOKEN for authentication

This commit is contained in:
hoellen 2021-12-03 17:13:45 +01:00
parent 76891f6cdf
commit 3a563dd4e2

View File

@ -39,9 +39,9 @@ jobs:
# with:
# sarif_file: 'trivy-results.sarif'
- name: Docker login
- name: Login to the registry
run: >-
echo "${{ secrets.GHCR_TOKEN }}"
echo "${{ secrets.GITHUB_TOKEN }}"
| docker login -u "${{ github.actor }}" --password-stdin ghcr.io
- name: Push image to GitHub