Skip to content
Prev Previous commit
Next Next commit
fix empty repo runs
  • Loading branch information
witmicko committed Dec 9, 2025
commit da090b6f37f25c7fdfabcb27c1e5e289b9ddfe5b
5 changes: 5 additions & 0 deletions .github/workflows/onboard-new-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ jobs:
To configure the scanner for your repository's specific needs,
please review the workflow file and adjust as necessary."

# For empty repos, rename the branch to match the base branch
if [ "$IS_EMPTY" = "true" ]; then
git branch -M "$BRANCH_NAME"
fi

git push -u origin "$BRANCH_NAME"
shell: bash

Expand Down
Loading