Skip to content

Commit b0979d7

Browse files
committed
ci: release: Pass secrets to reusable workflows
This commit updates the release workflow to explicitly pass the secrets to the reusable CI workflow (invoked via `workflow_call`) because the repository secrets are not available by default in the reusable workflows.
1 parent 2de553d commit b0979d7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
pull_request_target:
99
branches: [ main ]
1010
workflow_call:
11+
secrets:
12+
AWS_CACHE_SDK_ACCESS_KEY_ID:
13+
required: true
14+
AWS_CACHE_SDK_SECRET_ACCESS_KEY:
15+
required: true
1116
workflow_dispatch:
1217
inputs:
1318
zephyr-ref:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
ci:
1818
name: CI
1919
uses: ./.github/workflows/ci.yml
20+
secrets:
21+
AWS_CACHE_SDK_ACCESS_KEY_ID: ${{ secrets.AWS_CACHE_SDK_ACCESS_KEY_ID }}
22+
AWS_CACHE_SDK_SECRET_ACCESS_KEY: ${{ secrets.AWS_CACHE_SDK_SECRET_ACCESS_KEY }}
2023

2124
# Publish release assets
2225
release:

0 commit comments

Comments
 (0)