Skip to content

Commit b3b8da9

Browse files
Secure pass GITHUB_TOKEN to action
1 parent 21c2c5c commit b3b8da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- name: Build the Docker image
18-
run: docker build . --file Dockerfile --build-arg GH_TOKEN=${{ secrets.GITHUB_TOKEN }} --tag ghcr.io/fails-components/notepadhandler:$(date +%s)
18+
run: export GH_TOKEN=${{ secrets.GITHUB_TOKEN }}; docker build . --file Dockerfile --secret id=GH_TOKEN --tag ghcr.io/fails-components/notepadhandler:$(date +%s)

0 commit comments

Comments
 (0)