Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ne pas afficher les commandes exécutés dans les scripts de publication pour ne pas afficher les tokens en prod #81

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

francois2metz
Copy link
Contributor

🦄 Problème

Voir #78. L'utilisation de sed n'étant pas idéale, chez repris la proposition de Jonathan.

🤖 Solution

Ne pas afficher les commandes bash dans la sortie du script

🌈 Remarques

J'ai tenté d'utiliser le stockage des credentials de git, mais je ne vois pas comment l'utiliser tout en évitant d'afficher le token dans la sortie.

💯 Pour tester

Faire une release et vérifier que les commandes bash ne sont plus affichées.

Copy link
Member

@laura-bergoens laura-bergoens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok !

@@ -1,6 +1,6 @@
#!/bin/bash

set -euxo pipefail
set -euo pipefail
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if [ "$DEBUG" == "true" ];
then
set -euxo pipefail;
else
set -euo pipefail;
fi

@francois2metz francois2metz merged commit 6ab6679 into main Jul 20, 2021
@francois2metz francois2metz deleted the tech-remove-option-x-on-scripts branch July 20, 2021 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants