LoginSignup
6
0

More than 1 year has passed since last update.

[GitHub Actions] Personal Access Token to create or update workflowの対応方法

Last updated at Posted at 2023-03-14

はじめに

GitHub ActionsPullReqが作られた際に自動でコードのチェックをするActionsの設定をしようと思っていたところ、下記のようなエラーでファイルがPush出来なかったので、調査結果と解決方法の説明です。

refusing to allow a Personal Access Token to create or update workflow `.github/workflows/lint.yml` without `workflow` scope)

原因

エラー内容はアクセストークン作ってくれないとworkflowを編集できないよ。ということ。

解決方法

SettingsDeveloper settingsTokens (classic)の中にある該当のアクセスキーにworkflowチェックボックスがあるのだがONにしておかないといけない。

1.png

2.png

3.png
GitHub Actionsの部分は自分で設定したキー名

4.png

Github Actionsの有効の仕方

初期のリポジトリの設定では、Github Actionsは使えない状態になってるので、下記から設定可能です。
スクリーン ショット 2023-03-20 に 17.11.10 午後.png

6
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
0