Use secure_env_enabled? and addons_enabled? when decrypting config

Using pull_request? is no longer valid, becasue we changed the rules of
secure env vars and addons availability.