From 8eda5925665c00a4f9822291e596cfb28c5b9d83 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Fri, 4 Aug 2023 10:23:38 +0200 Subject: [PATCH] CI: use GITHUB_TOKEN for pushing container --- .github/workflows/images-creator.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/images-creator.yml b/.github/workflows/images-creator.yml index 2ac5c9f..a84e733 100644 --- a/.github/workflows/images-creator.yml +++ b/.github/workflows/images-creator.yml @@ -34,10 +34,10 @@ jobs: run: docker images - name: login and push env: - deploy_secret: ${{ secrets.CR_PAT }} + deploy_secret: ${{ secrets.GITHUB_TOKEN }} run: | if [ ! -z ${deploy_secret} ]; then - echo ${{ secrets.CR_PAT }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin; + echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin; docker push ghcr.io/aidasoft/${{ matrix.image }}:latest; else echo "Skipping deploy no secrets present"; @@ -69,10 +69,10 @@ jobs: run: docker images - name: login and push env: - deploy_secret: ${{ secrets.CR_PAT }} + deploy_secret: ${{ secrets.GITHUB_TOKEN }} run: | - if [ ! -z ${deploy_secret} ]; then - echo ${{ secrets.CR_PAT }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin; + if [ ! -z ${{ deploy_secret }} ]; then + echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin; docker push ghcr.io/aidasoft/coverity:latest; else echo "Skipping deploy no secrets present";