![見出し画像](https://assets.st-note.com/production/uploads/images/137501136/rectangle_large_type_2_350d43a09015b52c4ab08479ea70a72c.jpeg?width=800)
【GitHub Actionsでつまづいたことメモ】権限設定の変更を忘れないように!
WEBでのスクレイピングに、自動化させるために、GitHub Actionsを使っています。
久しぶりに、設定しようとしたら、うまくいかず、エラーが出てつまづいたので、メモとして残します。
Unable to access : 403 Error
![](https://assets.st-note.com/img/1713262985042-1UEAeGccF2.png?width=800)
Please make sure you have the correct access rights
and the repository exists.
remote: Permission to linkevery2s/amedas.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/linkevery2s/amedas/': The requested URL returned error: 403
Error: Process completed with exit code 128.
403 Errorとなり、Denoのプログラムが権限で弾かれることに…
設定変更すれば、すぐに改善されました!
権限の設定変更
![](https://assets.st-note.com/img/1713263044352-XQeFTd7uQN.png?width=800)
デフォルトは、Read repository … になっているので、これをRead and write …に変更。
これで、書き込み権限が与えられるので、ちゃんとcommitできるようになりました。
スクレイピング、自動化とくれば、GitHub Actions。皆さんの参考にもなれば幸いです!
この記事が気に入ったらサポートをしてみませんか?