-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CIの導入 #19
CIの導入 #19
Conversation
ESLintの設定を修正し、リンターを走らせました |
.github/workflows/lint.yaml
Outdated
- name: Checkout main branch | ||
uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 行目について,PR の base branch に対しても実行されることを考えると「Checkout main branch」の「main」を「target」のような表現に変えてみるのはどうでしょうか? それなら意図が一層明瞭になって良さそうです
次行のような各 Actions についても,セキュリティーの観点からバージョンは commit hash による指定が望ましいです。pinact のようなツールを使って機械的に置換すればサクッと対応できます。願わくば Renovate を使ってこの更新管理も自動化できるとなお良しではあるものの,流石にそこは本件の範囲外といったところでしょうかね……。
- name: Checkout main branch | |
uses: actions/checkout@v4 | |
- name: Checkout target branch | |
uses: actions/checkout@ # commit hash に置き換える |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
どちらも納得です、対応します!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ですー!
GitHub ActionsでPRの作成時に以下の4つをチェックするCIを追加