Skip to content

Saleor Core: the high performance, composable, headless commerce API.

GHA: publish container images using GITHUB_TOKEN (#15277)

Mikail8fbd56dbc9d8
diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.yml
index 1bb7859f1c..8f52571c2b 100644
--- a/.github/workflows/publish-containers.yml
+++ b/.github/workflows/publish-containers.yml
@@ -12,6 +12,11 @@ on:
jobs:
docker:
runs-on: ubuntu-20.04
+
+ permissions:
+ contents: read
+ packages: write
+
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -48,8 +53,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
- username: ${{ secrets.CR_USERNAME }}
- password: ${{ secrets.CR_PAT }}
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
id: docker_build