Env var type "File" works exactly as "Variable"
Summary
"File" env var doesn't actually create a file, but instead contains the secret data within it. Leads to unpleasant consequences re printing stuff in the console.
Steps to reproduce
- https://github.com/Jtalk/digito/blob/63560c4a95b53dab1fa1ba5273074a70bc10e4b1/.gitlab-ci.yml See variables.WITH_SSH and $DEPLOY_SSH_KEY within it.
- Create DEPLOY_SSH_KEY with your key like this:
- Run your pipeline and watch your not-so-private-anymore key being printed:
- Spend Sunday morning revoking & replacing the not-so-private-anymore key everywhere.
Example Project
https://gitlab.com/jtalk-group/digito/-/jobs/325943225
What is the current bug behavior?
File variables don't work as documented.
What is the expected correct behavior?
File variables work as documented.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
gitlab.com
Results of GitLab environment info
???
Results of GitLab application Check
???
Possible fixes
???

