Skip to content

Commit 940157d

Browse files
committed
Use env-based guards for pinned smoke secrets
1 parent f32b45e commit 940157d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
jobs:
1515
validate:
1616
runs-on: ubuntu-latest
17+
env:
18+
MB3R_GHCR_USERNAME: ${{ secrets.MB3R_GHCR_USERNAME }}
19+
MB3R_GHCR_TOKEN: ${{ secrets.MB3R_GHCR_TOKEN }}
1720
steps:
1821
- uses: actions/checkout@v4
1922

@@ -35,14 +38,11 @@ jobs:
3538
run: make e2e-adapters
3639

3740
- name: Generic live smoke with pinned GHCR images
38-
if: ${{ secrets.MB3R_GHCR_USERNAME != '' && secrets.MB3R_GHCR_TOKEN != '' }}
39-
env:
40-
MB3R_GHCR_USERNAME: ${{ secrets.MB3R_GHCR_USERNAME }}
41-
MB3R_GHCR_TOKEN: ${{ secrets.MB3R_GHCR_TOKEN }}
41+
if: ${{ env.MB3R_GHCR_USERNAME != '' && env.MB3R_GHCR_TOKEN != '' }}
4242
run: make k8s-smoke-generic-pinned
4343

4444
- name: Note pinned GHCR smoke precondition
45-
if: ${{ secrets.MB3R_GHCR_USERNAME == '' || secrets.MB3R_GHCR_TOKEN == '' }}
45+
if: ${{ env.MB3R_GHCR_USERNAME == '' || env.MB3R_GHCR_TOKEN == '' }}
4646
run: |
4747
echo "::warning::Pinned GHCR smoke skipped because MB3R_GHCR_USERNAME and MB3R_GHCR_TOKEN are not configured."
4848
echo "::warning::Repo-scoped GITHUB_TOKEN does not currently prove cross-repo pull access to upstream Bering/Sheaft GHCR packages."

0 commit comments

Comments
 (0)