【发布时间】:2023-02-10 00:58:24
【问题描述】:
我对 Rails Credentials 感到疯狂!
启动我的 Github Action 测试时,我有一个 Missing Master Key Error。
我有
-
使用
rails credential:edit -e test命令生成credentials/test.key和credentials/test.yml.enc, -
将
test.key的内容存储在 GITHUB Actions Secret 中 -
在我的 Github Action 中引用了它
env: RAILS_ENV: test RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}仍然说“丢失钥匙”... 我也在生产中做了同样的事情(就像之前 master.key 存储在 Github 上一样!!)
【问题讨论】:
标签: ruby-on-rails github-actions credentials