Skip to content

Commit cbcf9e0

Browse files
committed
fix(ci): add secrets to reusable workflows
CHANGES - Add DOCKERHUB_TOKEN secret declaration to auto-update-publish.yml - Add secrets: inherit to auto-update.yml orchestrator IMPACT - Docker Hub authentication now works in reusable workflows
1 parent c132985 commit cbcf9e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/auto-update-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Publish Image to Docker Hub
22

33
on:
4-
workflow_call: {}
4+
workflow_call:
5+
secrets:
6+
DOCKERHUB_TOKEN:
7+
required: true
58
workflow_dispatch: {} # Manual trigger for testing
69

710
concurrency: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/auto-update.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ jobs:
3434
attestations: write # Required: artifact attestation
3535
id-token: write # Required: OIDC token for attestation
3636
uses: ./.github/workflows/auto-update-publish.yml
37+
secrets: inherit # Required for workflow accessing env secrets

0 commit comments

Comments
 (0)