Skip to content

Commit 497df56

Browse files
committed
ci: disable auto merge default to prevent secret leak on malicios pr
1 parent f27f786 commit 497df56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/js/setupRepository.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ function _setupRepoComment(){
4949
Setup your repository default settings. Goto this url https://github.com/${org}/${repoName}/settings
5050
5151
- [ ] In \`Settings> General> Pull Requests\` uncheck/disable \`Allow merge commits \`
52-
- [ ] In \`Settings> General> Pull Requests\` check/enable \`Allow auto-merge \` and \`Automatically delete head branches \`
52+
- [ ] In \`Settings> General> Pull Requests\` uncheck/disable \`Allow auto-merge \`. This is to prevent GitHub secrets leak after malicious pull request auto merges.
53+
- [ ] In \`Settings> General> Pull Requests\` check/enable \`Automatically delete head branches \`
5354
- [ ] Delete the file \`.github/workflows/setup_repository.yml\ and \`.github/workflows/js/setupRepository.cjs\`
5455
`;
5556
}

0 commit comments

Comments
 (0)