Skip to content

Commit 9f4b48d

Browse files
committed
Updated the code quality workflow
1 parent c5921b6 commit 9f4b48d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/code_quality.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ jobs:
2727
run: bandit -r .
2828
# Commit and push changes made by Black and Ruff
2929
- name: Commit and push if changed
30+
env:
31+
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
3032
run: |
3133
git config --global user.name 'github-actions'
3234
git config --global user.email '[email protected]'
3335
git add -A
3436
git commit -m "Automated code quality fixes" -a || echo "No changes to commit"
35-
git push
37+
git push https://${MY_GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:${GITHUB_REF_NAME}

0 commit comments

Comments
 (0)