Skip to content

Commit c89c937

Browse files
authored
Remove the secrets from condition check (#18)
1 parent 26ff887 commit c89c937

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/container-vulnerability-scan.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ jobs:
4141
- name: Set up Docker Buildx
4242
uses: docker/setup-buildx-action@v2
4343
- name: Login to DockerHub container registry
44-
if: ${{ inputs.login_dockerhub }} &&
45-
${{ secrets.DOCKERHUB_USERNAME }} != null &&
46-
${{ secrets.DOCKERHUB_PASSWORD }} != null
44+
if: ${{ inputs.login_dockerhub }} == true
4745
uses: docker/login-action@v2
4846
with:
4947
username: ${{ secrets.DOCKERHUB_USERNAME }}

0 commit comments

Comments
 (0)