-
Notifications
You must be signed in to change notification settings - Fork 56
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
[TECH] Utiliser le token de github pour sécuriser l'auto merge. #3446
Conversation
I'm deploying this PR to these urls:
Please check it out! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
b5afca2
to
0a0a858
Compare
Il me semblait qu'il y avait un problème lorsqu'on utilisait le token github car il a les droits "admin" et peut donc outrepasser les checks pour merger. Par conséquence, il peut merger même s'il y a des checks non valides. (par ex: le nombre d'approuve minimums) Une explication ici : https://1024pix.atlassian.net/wiki/spaces/DEV/pages/1789591617/Auto-merge+de+Pull+Request
Mais, désormais, il est possible de modifier les permissions du GITHUB TOKEN par Job : https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token |
0a0a858
to
58f3a40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c83a444
to
ff1f384
Compare
ff1f384
to
68d105e
Compare
68d105e
to
6b4f50c
Compare
6b4f50c
to
b988559
Compare
Je vois que cette PR est délaissée alors que la revue est Ok. |
🦄 Problème
Un utilisateur externe existe et a un accès
Maintainer
sur le projet pour automatiser le merge des PRs🤖 Solution
Github a un token spécifique pour les actions de projet qui sont auto-généré au moment de l'action. Ceci permet d'éviter de donner accès à des comptes externes et de devoir garder le token en variable secrète sur le repo. Voir détail ici
Montée de version de 0.8.3 à 0.14.3
CHANGELOG
🌈 Remarques
On a fait pareil sur Pix-UI : 1024pix/pix-ui#150
Voir la doc : https://docs.github.com/en/actions/security-guides/automatic-token-authentication