Skip to content

Commit 90817f4

Browse files
rucoderOhmSpectator
authored andcommitted
GHA: Update to use secrets
- login to Dockerhub before we run eden because it pulls images - switch to pull_request_target to get secrets becasue now we need to login to Dockerhub Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
1 parent ac21fb6 commit 90817f4

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/eden.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Eden
33
on: # yamllint disable-line rule:truthy
4-
pull_request:
4+
pull_request_target:
55
branches: [master]
66
paths-ignore:
77
- 'docs/**'

.github/workflows/eden_setup.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
uses: actions/setup-go@v3
5656
with:
5757
go-version: '1.22'
58+
- name: Login to DockerHub (Pull)
59+
if: ${{ github.event.repository.full_name }} == 'lf-edge/eden'
60+
uses: docker/login-action@v3
61+
with:
62+
username: ${{ secrets.DOCKERHUB_PULL_USER }}
63+
password: ${{ secrets.DOCKERHUB_PULL_TOKEN }}
5864
- name: build eden
5965
run: |
6066
make clean

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: docker/setup-buildx-action@v3
3030
- name: Set up QEMU
3131
uses: docker/setup-qemu-action@v3
32-
- name: Login to DockerHUB
32+
- name: Login to DockerHUB (Push)
3333
id: login
3434
run: |
3535
echo "${{ secrets.RELEASE_DOCKERHUB_TOKEN }}" |\

0 commit comments

Comments
 (0)