Skip to content

Commit 2929952

Browse files
hyperpolymathclaude
andcommitted
fix: use env intermediary for secrets check in container-publish
GitHub Actions doesn't allow secrets in step-level if conditions. Use env variable intermediary pattern instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a32557b commit 2929952

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/container-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ jobs:
3232
password: ${{ secrets.GITHUB_TOKEN }}
3333

3434
- name: Log in to Docker Hub
35-
if: ${{ secrets.DOCKERHUB_USERNAME != '' }}
35+
if: env.DOCKERHUB_USERNAME != ''
3636
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
37+
env:
38+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
3739
with:
3840
username: ${{ secrets.DOCKERHUB_USERNAME }}
3941
password: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)