steps: - name: echo-secret image: alpine:latest environment: STAGING_SSH_KEY: test123 commands: - | echo "START SECRET" echo "$STAGING_SSH_KEY" | wc -c echo "$STAGING_SSH_KEY" | head -c 64 echo "END SECRET" when: event: [push, manual] branch: [master]