title: Rails Master Key on GitHub Actions causes ActiveSupport::MessageEncryptor::InvalidMessage
body: <p>Anyone have experience with using <code>RAILS_MASTER_KEY</code> env with GH Actions?
  Recently switched to Rails 7 from 6. Using the credentials.yml.enc to store the ActiveRecord encryption stuff. Have set <code>RAILS_MASTER_KEY</code> locally and it works fine. Have confirmed I can encode/decode stuff fine. However when pushing to GH and using our CI (running tests etc.) I come across this error:</p>
  <pre><code>ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage
  Caused by:
  OpenSSL::Cipher::CipherError: 
  </code></pre>
  <p>I have added the ENV to the GH Action but still no dice:</p>
  <pre><code>RAILS_MASTER_KEY=${{ secrets.RAILS_MASTER_KEY }}
  </code></pre>
  <p>Then I set the secret in the repo as well, it seems it is not reading it correctly?</p>