ファイルの削除を行ったものをコミットする場合、git rm ファイル名のあとは通常のcommitをしますよね?
なぜか一部のファイルでそれができずに困っています。。。
具体的には
git rmを行ったあとgit commitしようとすると
app/assets/stylesheets/common.css.scss:1213: // background: url(実際のURL) center center; config/settings.yml:130: access_key_id: ~~~~(ここは実際のアクセスキー) config/settings.yml:131: secret_access_key: ~~~~(ここも実際のキー) [ERROR] Matched one or more prohibited patterns Possible mitigations: - Mark false positives as allowed using: git config --add secrets.allowed ... - Mark false positives as allowed by adding regular expressions to .gitallowed at repository's root directory - List your configured patterns: git config --get-all secrets.patterns - List your configured allowed patterns: git config --get-all secrets.allowed - List your configured allowed patterns in .gitallowed at repository's root directory - Use --no-verify if this is a one-time false positive
ちなみにAWSに関係あるものではまったくなく、Mailerを作ったときに最初に自動生成されたCSSファイルやhelperファイル、あと自分で追加したが使わなくなったtextメールのファイルなどです。
何らかの誤検知がされているということでしょうか?
だとしたらPossible mitigationsにしたがっていろいろ見てみろという感じですかね??
AWS使ったことないし、gitも詳しくないですが、git-secretsってやつではないですか?
エラーメッセージでググった最初のページです。
https://qiita.com/pottava/items/4c602c97aacf10c058f1
よく分かってないので、ご参考までに。
回答2件
あなたの回答
tips
プレビュー