Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit cc335d8

Browse files
authored
Actions: Pass Docker registry password via stdin (#29)
Follow the recommended practice and keep the token out of shell history and logs. (Actions will probably filter the logs, but good to be cautious.)
1 parent 219a797 commit cc335d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v1
1919

2020
- name: Login to docker
21-
run: docker login docker.pkg.github.com -u github-actions -p ${{ secrets.GITHUB_TOKEN }}
21+
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u github-actions --password-stdin
2222

2323
- name: Build Images & Run Queries
2424
run: cd courses/cpp/ctf-segv && ../../../scripts/test-course-actual.sh

0 commit comments

Comments
 (0)