fix: Use a user with permissions for ghcr login always (#2465)

Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
This commit is contained in:
Jorge Turrado Ferrero 2022-01-11 11:56:44 +01:00 committed by GitHub
parent 6d1a8ede3f
commit 27330739bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View File

@ -50,9 +50,12 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: ${{ github.repository_owner }}
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.GHCR_AUTH_PAT }}
# Server address of Docker registry. If not set then will default to Docker Hub
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish on GitHub Container Registry
run: make publish

View File

@ -13,9 +13,12 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
# Username used to log in to a Docker registry. If not set then no login will occur
username: ${{ github.repository_owner }}
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
password: ${{ secrets.GHCR_AUTH_PAT }}
# Server address of Docker registry. If not set then will default to Docker Hub
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build current version
run : make publish

View File

@ -44,7 +44,7 @@
### Other
- **General:** Add workflow for testing breaking changes on CRDs (`Scaled{Object|Job}`) ([#2450](https://github.com/kedacore/keda/pull/2450))
- **General:** Add workflow for testing breaking changes on CRDs (`Scaled{Object|Job}`) ([#2450](https://github.com/kedacore/keda/pull/2450))|([#2465](https://github.com/kedacore/keda/pull/2465))
## v2.5.0