fatal could not read Username for 'https://github.com' terminal prompts disabled
๐ฌ Intro
GitHub Actions์์ ๋ฐ์ํ ์ธ์ฆ ์ค๋ฅ๋ฅผ ํด๊ฒฐํด๋ณด๊ฒ ์ต๋๋ค.
โ ๋ฌธ์
1
2
3
4
5
6
steps:
- name: ๋ ํฌ์งํ ๋ฆฌ ์ฒดํฌ์์
uses: actions/checkout@v4
with:
token: $
submodules: true
ํ์ฌ CI workflow์๋ ์ค์ ํ์ผ์ ์๋ธ๋ชจ๋์์ ๊ฐ์ ธ์ค๋๋ก ๋์ด ์์ต๋๋ค. ๋ฐ๋ผ์ CI๋ฅผ ์ํด์๋ ๋ฐ๋์ ์ ํจํ github ํ ํฐ์ด ์๊ตฌ๋ฉ๋๋ค.
์ด ์๋ฌ๋ GitHub Actions์์ ๋ฐ์ํ ์ธ์ฆ ๋ฌธ์ ์ ๊ด๋ จ์ด ์์ต๋๋ค. ๊ตฌ์ฒด์ ์ผ๋ก โfatal: could not read Username for โhttps://github.comโ: terminal prompts disabledโ๋ผ๋ ๋ฉ์์ง๋ Git์ด GitHub์ ์ ๊ทผํ ๋ ์ฌ์ฉ์ ์ด๋ฆ๊ณผ ๋น๋ฐ๋ฒํธ๋ฅผ ์ ๋ ฅํด์ผ ํ์ง๋ง, GitHub Actions๋ ํฐ๋ฏธ๋ ์ ๋ ฅ์ ๋ฐ์ ์ ์์ด์ ๋ฐ์ํ๋ ์ค๋ฅ์ ๋๋ค.
โ ํด๊ฒฐ๊ณผ์
- workflow์์ ์ฌ์ฉํ๋ ํ ํฐ์ด ๋ง๋ฃ๋์ด์๋์ง ํ์ธํ๊ณ ๋ง๋ฃ๊ฐ ๋์๋ค๋ฉด ์๋ก ์์ ์ ํด์ค๋๋ค. ์ ์ ๊ฒฝ์ฐ submodule ํ ํฐ์ด ๋ง๋ฃ๊ฐ ๋์์ด์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ธฐ ๋๋ฌธ์ ์๋ก ๊ฐฑ์ ์ ํด์ฃผ์์ต๋๋ค.
- github actions ๋์ ์ ์ฌ์ฉํ๋ ์๋ธ๋ชจ๋ ํ ํฐ secret ๊ฐ์ ๊ฐฑ์ ํด์ฃผ๋ฉด ๋ฉ๋๋ค.
โจSummary
github actions ๋์ ์ค ์ธ์ฆ์ค๋ฅ๊ฐ ๋ฐ์ํ๋ฉด secret ๊ฐ๋ค์ด ์๋ชป๋์ด ์์ง๋ ์์์ง ์ ๊ฒํด๋ณด๋ฉด ๋ฉ๋๋ค.
This post is licensed under CC BY 4.0 by the author.