ソースコードをGitHubで管理しているとDependabotでライブラリの脆弱性を発見するのが便利。 しかしその脆弱性対応で必要なのがパッチレベルの更新だったりすると自動でマージしてしまいたい、と思った。 調べてみるとGitHub公式のサイトに載っていたのでメモ。 実際のファイルは自分のリポジトリから持ってきた。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Format | |
on: pull_request | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Workspace | |
uses: actions/checkout@v3 | |
with: |