Skip to content

Commit 5922c85

Browse files
committed
Update action.yml with default values for registry-username and registry-token
1 parent 86a44be commit 5922c85

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

action.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ inputs:
66
required: true
77
registry-username:
88
description: 'Enter the username to authenticate with your registry.'
9-
default: "${{ github.actor }}"
10-
required: true
9+
default: ''
1110
registry-token:
1211
description: 'Enter the token or password to authenticate with your registry. (an access token is highly recommended)'
13-
default: "${{ secrets.GITHUB_TOKEN }}"
14-
required: true
12+
default: ''
1513
registry:
1614
description: 'Comma-separated list of container registries to authenticate with (e.g., "docker.io,ghcr.io").'
1715
default: 'docker.io' # Default to Docker Hub if not specified
@@ -48,8 +46,8 @@ runs:
4846
if: contains(inputs.registry, 'ghcr.io')
4947
uses: docker/login-action@v3
5048
with:
51-
username: ${{ inputs.registry-username }}
52-
password: ${{ inputs.registry-token }}
49+
username: ${{ github.actor }}
50+
password: ${{ secrets.GITHUB_TOKEN }}
5351
registry: ghcr.io
5452

5553
- name: Set up QEMU

0 commit comments

Comments
 (0)