Skip to content

Commit dec4038

Browse files
committed
tweak(github/ci): authenticate with container registry
1 parent 42fbcd8 commit dec4038

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci_build.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: CI Build all products
33
on:
44
workflow_call:
55

6-
permissions: {}
6+
permissions:
7+
packages: read
78

89
jobs:
910
build_all:
@@ -50,7 +51,15 @@ jobs:
5051
shell: bash
5152
run: |
5253
mkdir -p "$ROOT_DEP" && cd "$_" || exit 1
53-
54+
55+
- name: Log in to the Container registry
56+
if: ${{ matrix.builds[2] == 'linux' }}
57+
uses: docker/login-action@v3
58+
with:
59+
registry: ghcr.io
60+
username: ${{ github.actor }}
61+
password: ${{ secrets.GITHUB_TOKEN }}
62+
5463
- name: Compile
5564
shell: bash
5665
run: |

.github/workflows/pr_opened.yml

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ jobs:
176176
177177
build_all:
178178
name: Build
179+
permissions:
180+
packages: read
179181
needs: input_validation
180182
if: ${{ needs.input_validation.outputs.requires_compilation == 'true' }}
181183
uses: ./.github/workflows/ci_build.yml

0 commit comments

Comments
 (0)